Browse Source

Clear password

Bob Mottram 7 years ago
parent
commit
3fc4f40cd2
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/freedombone-app-ghost

+ 2
- 0
src/freedombone-app-ghost View File

@@ -237,6 +237,7 @@ function restore_local_ghost {
237 237
         MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
238 238
         ghost_config=/var/www/${GHOST_DOMAIN_NAME}/htdocs/config.js
239 239
         sed -i "s|password :.*|password : '${MARIADB_PASSWORD}',|g" $ghost_config
240
+        MARIADB_PASSWORD=
240 241
 
241 242
         systemctl start ghost
242 243
         restart_site
@@ -282,6 +283,7 @@ function restore_remote_ghost {
282 283
     MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
283 284
     ghost_config=/var/www/${GHOST_DOMAIN_NAME}/htdocs/config.js
284 285
     sed -i "s|password :.*|password : '${MARIADB_PASSWORD}',|g" $ghost_config
286
+    MARIADB_PASSWORD=
285 287
 
286 288
     systemctl start ghost
287 289
     restart_site