From 927e3589664e10c72c89f5c9f1951c90e2c857dd Mon Sep 17 00:00:00 2001 From: Fabian Wilkens Date: Sat, 1 May 2021 20:11:59 +0200 Subject: [PATCH] Remove unneeded code --- scripts/change_url | 10 ++-------- scripts/install | 15 +++------------ scripts/upgrade | 15 +++------------ 3 files changed, 8 insertions(+), 32 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index a9b7488..0d9b672 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -95,10 +95,7 @@ then domain="$old_domain" path_url="$new_path" # Create a dedicated nginx config - ynh_add_nginx_config "\ - port \ - access_domain\ - " + ynh_add_nginx_config fi # Change the domain for nginx @@ -152,10 +149,7 @@ domain=$new_domain path_url=$new_path # Create a dedicated fail2ban config touch "/var/log/$app/$app.log" -ynh_add_fail2ban_config --use_template --others_var="\ - domain \ - path_url \ - " +ynh_add_fail2ban_config --use_template #================================================= # GENERIC FINALISATION diff --git a/scripts/install b/scripts/install index 1727de3..d3a2e08 100755 --- a/scripts/install +++ b/scripts/install @@ -102,10 +102,7 @@ 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 "\ - port \ - access_domain \ - " +ynh_add_nginx_config #================================================= # CREATE DEDICATED USER @@ -205,10 +202,7 @@ done ynh_script_progression --message="Configuring a systemd service..." --weight=4 # Create a dedicated systemd config -ynh_add_systemd_config --others_var="\ - port \ - RUBY_VERSION \ -" +ynh_add_systemd_config #================================================= # STORE THE CONFIG FILE CHECKSUM @@ -261,10 +255,7 @@ 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 --others_var="\ - domain \ - path_url \ - " +ynh_add_fail2ban_config --use_template #================================================= # SETUP SSOWAT diff --git a/scripts/upgrade b/scripts/upgrade index 59c4749..563ade6 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -202,10 +202,7 @@ fi ynh_script_progression --message="Upgrading nginx web server configuration..." --weight=1 # Create a dedicated nginx config -ynh_add_nginx_config "\ - port \ - access_domain \ - " +ynh_add_nginx_config #================================================= # UPGRADE DEPENDENCIES @@ -305,10 +302,7 @@ done ynh_script_progression --message="Upgrading systemd configuration..." --weight=1 # Create a dedicated systemd config -ynh_add_systemd_config --others_var="\ - port \ - RUBY_VERSION \ -" +ynh_add_systemd_config #================================================= # STORE THE CONFIG FILE CHECKSUM @@ -358,10 +352,7 @@ 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 --others_var="\ - domain \ - path_url \ - " +ynh_add_fail2ban_config --use_template #================================================= # START SYSTEMD SERVICE