1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wireguard_ynh.git synced 2024-09-03 20:35:58 +02:00
This commit is contained in:
ericgaspar 2021-09-09 17:49:45 +02:00
parent e9d20c8bae
commit b82ee6e2d1
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 4 additions and 10 deletions

View file

@ -78,7 +78,7 @@ ynh_secure_remove --file="/etc/wireguard"
#================================================= #=================================================
# REMOVE NGINX CONFIGURATION # REMOVE NGINX CONFIGURATION
#================================================= #=================================================
ynh_script_progression --message="Removing nginx web server configuration..." --weight=1 ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
# Remove the dedicated nginx config # Remove the dedicated nginx config
ynh_remove_nginx_config ynh_remove_nginx_config
@ -101,12 +101,6 @@ then
ynh_exec_warn_less yunohost firewall disallow UDP $port_wg ynh_exec_warn_less yunohost firewall disallow UDP $port_wg
fi fi
if yunohost firewall list | grep -q "\- $port$"
then
ynh_script_progression --message="Closing port $port..." --weight=1
ynh_exec_warn_less yunohost firewall disallow TCP $port
fi
#================================================= #=================================================
# SPECIFIC REMOVE # SPECIFIC REMOVE
#================================================= #=================================================

View file

@ -148,7 +148,7 @@ sleep 5
#================================================= #=================================================
# RELOAD NGINX AND PHP-FPM # RELOAD NGINX AND PHP-FPM
#================================================= #=================================================
ynh_script_progression --message="Reloading nginx web server and php-fpm..." --weight=1 ynh_script_progression --message="Reloading NGINX web server..." --weight=1
ynh_systemd_action --service_name=nginx --action=reload ynh_systemd_action --service_name=nginx --action=reload