mirror of
https://github.com/YunoHost-Apps/snserver_ynh.git
synced 2024-09-03 20:26:22 +02:00
Remove unnecessary --others-var
This commit is contained in:
parent
764d4fa3fa
commit
d7858ef0db
3 changed files with 8 additions and 32 deletions
|
@ -97,10 +97,7 @@ then
|
||||||
domain="$old_domain"
|
domain="$old_domain"
|
||||||
path_url="$new_path"
|
path_url="$new_path"
|
||||||
# Create a dedicated nginx config
|
# Create a dedicated nginx config
|
||||||
ynh_add_nginx_config "\
|
ynh_add_nginx_config
|
||||||
port \
|
|
||||||
access_domain\
|
|
||||||
"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Change the domain for nginx
|
# Change the domain for nginx
|
||||||
|
@ -154,10 +151,7 @@ domain=$new_domain
|
||||||
path_url=$new_path
|
path_url=$new_path
|
||||||
# Create a dedicated fail2ban config
|
# Create a dedicated fail2ban config
|
||||||
touch "/var/log/$app/$app.log"
|
touch "/var/log/$app/$app.log"
|
||||||
ynh_add_fail2ban_config --use_template --others_var="\
|
ynh_add_fail2ban_config --use_template
|
||||||
domain \
|
|
||||||
path_url \
|
|
||||||
"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
|
|
|
@ -105,10 +105,7 @@ ynh_setup_source --dest_dir="$final_path/live"
|
||||||
ynh_script_progression --message="Configuring nginx web server..." --weight=3
|
ynh_script_progression --message="Configuring nginx web server..." --weight=3
|
||||||
|
|
||||||
# Create a dedicated nginx config
|
# Create a dedicated nginx config
|
||||||
ynh_add_nginx_config "\
|
ynh_add_nginx_config
|
||||||
port \
|
|
||||||
access_domain \
|
|
||||||
"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
|
@ -210,10 +207,7 @@ done
|
||||||
ynh_script_progression --message="Configuring a systemd service..." --weight=4
|
ynh_script_progression --message="Configuring a systemd service..." --weight=4
|
||||||
|
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config --others_var="\
|
ynh_add_systemd_config
|
||||||
port \
|
|
||||||
RBENV_ROOT \
|
|
||||||
"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE THE CONFIG FILE CHECKSUM
|
# STORE THE CONFIG FILE CHECKSUM
|
||||||
|
@ -268,10 +262,7 @@ ynh_script_progression --message="Configuring fail2ban..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated fail2ban config
|
# Create a dedicated fail2ban config
|
||||||
touch "/var/log/$app/$app.log"
|
touch "/var/log/$app/$app.log"
|
||||||
ynh_add_fail2ban_config --use_template --others_var="\
|
ynh_add_fail2ban_config --use_template
|
||||||
domain \
|
|
||||||
path_url \
|
|
||||||
"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
|
@ -204,10 +204,7 @@ fi
|
||||||
ynh_script_progression --message="Upgrading nginx web server configuration..." --weight=1
|
ynh_script_progression --message="Upgrading nginx web server configuration..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated nginx config
|
# Create a dedicated nginx config
|
||||||
ynh_add_nginx_config "\
|
ynh_add_nginx_config
|
||||||
port \
|
|
||||||
access_domain \
|
|
||||||
"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE DEPENDENCIES
|
# UPGRADE DEPENDENCIES
|
||||||
|
@ -310,10 +307,7 @@ done
|
||||||
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
|
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config --others_var="\
|
ynh_add_systemd_config
|
||||||
port \
|
|
||||||
RBENV_ROOT \
|
|
||||||
"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE THE CONFIG FILE CHECKSUM
|
# STORE THE CONFIG FILE CHECKSUM
|
||||||
|
@ -365,10 +359,7 @@ ynh_script_progression --message="Reconfiguring fail2ban..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated fail2ban config
|
# Create a dedicated fail2ban config
|
||||||
touch "/var/log/$app/$app.log"
|
touch "/var/log/$app/$app.log"
|
||||||
ynh_add_fail2ban_config --use_template --others_var="\
|
ynh_add_fail2ban_config --use_template
|
||||||
domain \
|
|
||||||
path_url \
|
|
||||||
"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
Loading…
Reference in a new issue