2020-05-10 11:02:09 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# STANDARD RESTORATION STEPS
|
|
|
|
#=================================================
|
|
|
|
# RESTORE THE NGINX CONFIGURATION
|
|
|
|
#=================================================
|
|
|
|
|
2024-09-01 12:34:01 +02:00
|
|
|
ynh_restore "/etc/nginx/conf.d/$domain.d/$app.conf"
|
2020-05-10 11:02:09 +02:00
|
|
|
|
|
|
|
#=================================================
|
2021-03-25 16:03:00 +01:00
|
|
|
# RESTORE THE APP MAIN DIR
|
2020-05-10 11:02:09 +02:00
|
|
|
#=================================================
|
2024-09-01 12:34:01 +02:00
|
|
|
ynh_script_progression "Restoring $app main directory..."
|
2020-05-10 11:02:09 +02:00
|
|
|
|
2024-09-01 12:34:01 +02:00
|
|
|
ynh_restore "$install_dir"
|
2020-05-10 11:02:09 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# RELOAD NGINX
|
|
|
|
#=================================================
|
2024-09-01 12:34:01 +02:00
|
|
|
ynh_script_progression "Reloading NGINX web server..."
|
2020-05-10 11:02:09 +02:00
|
|
|
|
2024-09-01 12:34:01 +02:00
|
|
|
ynh_systemctl --service=nginx --action=reload
|
2020-05-10 11:02:09 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2024-09-01 12:34:01 +02:00
|
|
|
ynh_script_progression "Restoration completed for $app"
|