diff --git a/scripts/backup b/scripts/backup index 723667e..dc6e5d6 100755 --- a/scripts/backup +++ b/scripts/backup @@ -57,6 +57,7 @@ ynh_backup --src_path="$datadir" --is_big #================================================= ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" +ynh_backup --src_path="/etc/nginx/conf.d/$console_domain.d/$app.conf" #================================================= # SPECIFIC BACKUP diff --git a/scripts/install b/scripts/install index 715f2ed..4bf9aef 100755 --- a/scripts/install +++ b/scripts/install @@ -114,6 +114,8 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=4 # Create a dedicated NGINX config ynh_add_nginx_config +local consolenginxconf="/etc/nginx/conf.d/$console_domain.d/$app.conf" +ynh_add_nginx_config --template=../conf/nginx_console.conf --destination="$consolenginxconf" #================================================= # CREATE DATA DIRECTORY diff --git a/scripts/remove b/scripts/remove index 18b61b8..041f0a8 100755 --- a/scripts/remove +++ b/scripts/remove @@ -77,6 +77,7 @@ fi ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1 # Remove the dedicated NGINX config +ynh_secure_remove --file="/etc/nginx/conf.d/$console_domain.d/$app.conf" ynh_remove_nginx_config #================================================= diff --git a/scripts/restore b/scripts/restore index 3c185ed..556b3fb 100755 --- a/scripts/restore +++ b/scripts/restore @@ -51,6 +51,7 @@ test ! -d $final_path \ ynh_script_progression --message="Restoring the NGINX configuration..." --weight=1 ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" +ynh_restore_file --origin_path="/etc/nginx/conf.d/$console_domain.d/$app.conf" #================================================= # RECREATE THE DEDICATED USER diff --git a/scripts/upgrade b/scripts/upgrade index 062db54..84e17f4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -98,6 +98,8 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." - # Create a dedicated NGINX config ynh_add_nginx_config +local consolenginxconf="/etc/nginx/conf.d/$console_domain.d/$app.conf" +ynh_add_nginx_config --template=../conf/nginx_console.conf --destination="$consolenginxconf" # #================================================= # # ADD A CONFIGURATION