|
@@ -234,6 +234,10 @@ function restore_local_ghost {
|
234
|
234
|
function_check restore_database
|
235
|
235
|
restore_database ghost ${GHOST_DOMAIN_NAME}
|
236
|
236
|
|
|
237
|
+ MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
|
|
238
|
+ ghost_config=/var/www/${GHOST_DOMAIN_NAME}/htdocs/config.js
|
|
239
|
+ sed -i "s|password :.*|password : '${MARIADB_PASSWORD}',|g" $ghost_config
|
|
240
|
+
|
237
|
241
|
systemctl start ghost
|
238
|
242
|
restart_site
|
239
|
243
|
fi
|
|
@@ -274,6 +278,11 @@ function restore_remote_ghost {
|
274
|
278
|
ghost_create_database
|
275
|
279
|
|
276
|
280
|
restore_database_from_friend ghost ${GHOST_DOMAIN_NAME}
|
|
281
|
+
|
|
282
|
+ MARIADB_PASSWORD=$(${PROJECT_NAME}-pass -u root -a mariadb)
|
|
283
|
+ ghost_config=/var/www/${GHOST_DOMAIN_NAME}/htdocs/config.js
|
|
284
|
+ sed -i "s|password :.*|password : '${MARIADB_PASSWORD}',|g" $ghost_config
|
|
285
|
+
|
277
|
286
|
systemctl start ghost
|
278
|
287
|
restart_site
|
279
|
288
|
chown -R ghost: /var/www/$GHOST_DOMAIN_NAME/htdocs/
|