浏览代码

Clear password

Bob Mottram 8 年前
父节点
当前提交
3fc4f40cd2
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/freedombone-app-ghost

+ 2
- 0
src/freedombone-app-ghost 查看文件

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