From 78f480a4c85f93171e319707b32b1c9eba9d0d10 Mon Sep 17 00:00:00 2001 From: Fabian Wilkens Date: Sat, 1 May 2021 22:39:00 +0200 Subject: [PATCH] Re-add variables for now --- scripts/install | 15 ++++++++++++--- scripts/upgrade | 15 ++++++++++++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index fcb659b..9fccd43 100755 --- a/scripts/install +++ b/scripts/install @@ -103,7 +103,10 @@ ynh_setup_source --dest_dir="$final_path/live" ynh_script_progression --message="Configuring nginx web server..." --weight=3 # Create a dedicated nginx config -ynh_add_nginx_config +ynh_add_nginx_config "\ + port \ + access_domain \ + " #================================================= # CREATE DEDICATED USER @@ -205,7 +208,10 @@ done ynh_script_progression --message="Configuring a systemd service..." --weight=4 # Create a dedicated systemd config -ynh_add_systemd_config +ynh_add_systemd_config --others_var="\ + port \ + RUBY_VERSION \ +" #================================================= # STORE THE CONFIG FILE CHECKSUM @@ -261,7 +267,10 @@ ynh_script_progression --message="Configuring fail2ban..." --weight=1 # Create a dedicated fail2ban config touch "/var/log/$app/$app.log" -ynh_add_fail2ban_config --use_template +ynh_add_fail2ban_config --use_template --others_var="\ + domain \ + path_url \ + " #================================================= # SETUP SSOWAT diff --git a/scripts/upgrade b/scripts/upgrade index b566fff..95f9101 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -202,7 +202,10 @@ fi ynh_script_progression --message="Upgrading nginx web server configuration..." --weight=1 # Create a dedicated nginx config -ynh_add_nginx_config +ynh_add_nginx_config "\ + port \ + access_domain \ + " #================================================= # UPGRADE DEPENDENCIES @@ -305,7 +308,10 @@ done ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 # Create a dedicated systemd config -ynh_add_systemd_config +ynh_add_systemd_config --others_var="\ + port \ + RUBY_VERSION \ +" #================================================= # STORE THE CONFIG FILE CHECKSUM @@ -358,7 +364,10 @@ ynh_script_progression --message="Reconfiguring fail2ban..." --weight=1 # Create a dedicated fail2ban config touch "/var/log/$app/$app.log" -ynh_add_fail2ban_config --use_template +ynh_add_fail2ban_config --use_template --others_var="\ + domain \ + path_url \ + " #================================================= # START SYSTEMD SERVICE