#!/bin/bash source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers ynh_script_progression --message="Restoring the app main directory..." ynh_restore_file --origin_path="$install_dir" libreqr_apply_filesystem_permissions ynh_script_progression --message="Restoring the PHP-FPM configuration..." ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" ynh_systemd_action --service_name=php$phpversion-fpm --action=reload ynh_script_progression --message="Restoring the NGINX configuration..." ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_systemd_action --service_name=nginx --action=reload