Browse Source

Clear password

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