From d80c3d0d267c96029b9a4a3ab0313175732e0664 Mon Sep 17 00:00:00 2001 From: frju365 Date: Sun, 6 Jan 2019 13:30:23 +0100 Subject: [PATCH] Update restore --- scripts/restore | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/restore b/scripts/restore index 388e0cb..2a577a0 100644 --- a/scripts/restore +++ b/scripts/restore @@ -86,8 +86,15 @@ ynh_install_app_dependencies mongodb-org pushd $final_path datebackup=$(ynh_app_setting_get $app datebackup) -mongorestore mongo_backup$datebackup/ -ynh_secure_remove mongo_backup$datebackup/ +mongorestore mongo_backup/$datebackup/ +popd + +#================================================= +# Try reconfiguration +#================================================= + +pushd $final_path +exec_as "$app" ./nodebb build -l popd #================================================= @@ -122,5 +129,4 @@ ynh_restore_file "/etc/logrotate.d/$app" # RELOAD NGINX AND PHP-FPM #================================================= -systemctl reload php5-fpm systemctl reload nginx