1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nodebb_ynh.git synced 2024-09-03 19:46:29 +02:00

Update restore

This commit is contained in:
frju365 2019-01-06 13:30:23 +01:00 committed by GitHub
parent 4814e2cc1a
commit d80c3d0d26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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