#!/bin/bash source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers #================================================= # REVERSEPROXY_YNH #================================================= # Revalidate destination path rp_validate_proxy_path "$proxy_path" # Check configuration files NGINX_CONF="/etc/nginx/conf.d/${domain}.d/${app}.conf" [[ -f $NGINX_CONF ]] && ynh_die "The NGINX configuration already exists at '${NGINX_CONF}'. You should safely delete it before restoring this app." # Restore configuration files ynh_restore "$NGINX_CONF" # Reload nginx ynh_script_progression "Reloading NGINX web server..." ynh_systemctl --service=nginx --action=reload #================================================= # END OF SCRIPT #================================================= ynh_script_progression "Restoration completed for $app"