File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
workshops/dcms-oci/config/threads/db Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 60
60
if ! test -f $MY_STATE /state_password_set; then
61
61
DB_PASSWORD=$( get_secret $DB_PASSWORD_SECRET )
62
62
umask 177
63
- echo ' {"adminPassword": " ' " $DB_PASSWORD " ' " }' > temp_params
63
+ echo ' {"adminPassword": ' ` echo -n " $DB_PASSWORD " | jq -aRs . ` ' }' > temp_params
64
64
umask 22
65
65
oci db autonomous-database update --autonomous-database-id " $DB_OCID " --from-json " file://temp_params" > /dev/null
66
66
rm temp_params
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ if test "$(state_get RUN_TYPE)" == 'LL'; then
64
64
if ! state_done ${db_upper} _PASSWORD_SET; then
65
65
DB_PASSWORD=$( get_secret $( state_get DB_PASSWORD_SECRET) )
66
66
umask 177
67
- echo ' {"adminPassword": " ' " $DB_PASSWORD " ' " }' > temp_params
67
+ echo ' {"adminPassword": ' ` echo -n " $DB_PASSWORD " | jq -aRs . ` ' }' > temp_params
68
68
umask 22
69
69
oci db autonomous-database update --autonomous-database-id " $( state_get ${db_upper} _OCID) " --from-json " file://temp_params" > /dev/null
70
70
rm temp_params
You can’t perform that action at this time.
0 commit comments