Clear password
This commit is contained in:
parent
c1cf74c0d4
commit
3fc4f40cd2
|
@ -237,6 +237,7 @@ function restore_local_ghost {
|
||||||
MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
|
MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
|
||||||
ghost_config=/var/www/${GHOST_DOMAIN_NAME}/htdocs/config.js
|
ghost_config=/var/www/${GHOST_DOMAIN_NAME}/htdocs/config.js
|
||||||
sed -i "s|password :.*|password : '${MARIADB_PASSWORD}',|g" $ghost_config
|
sed -i "s|password :.*|password : '${MARIADB_PASSWORD}',|g" $ghost_config
|
||||||
|
MARIADB_PASSWORD=
|
||||||
|
|
||||||
systemctl start ghost
|
systemctl start ghost
|
||||||
restart_site
|
restart_site
|
||||||
|
@ -282,6 +283,7 @@ function restore_remote_ghost {
|
||||||
MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
|
MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
|
||||||
ghost_config=/var/www/${GHOST_DOMAIN_NAME}/htdocs/config.js
|
ghost_config=/var/www/${GHOST_DOMAIN_NAME}/htdocs/config.js
|
||||||
sed -i "s|password :.*|password : '${MARIADB_PASSWORD}',|g" $ghost_config
|
sed -i "s|password :.*|password : '${MARIADB_PASSWORD}',|g" $ghost_config
|
||||||
|
MARIADB_PASSWORD=
|
||||||
|
|
||||||
systemctl start ghost
|
systemctl start ghost
|
||||||
restart_site
|
restart_site
|
||||||
|
|
Loading…
Reference in New Issue