1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/piwigo_ynh.git synced 2024-09-03 20:06:03 +02:00

Remove "set -u" and avoidable services restarts from remove

This commit is contained in:
Jimmy Monin 2017-09-22 21:19:18 +02:00
parent 8d061f1651
commit 6780bd4a75

View file

@ -1,7 +1,5 @@
#!/bin/bash #!/bin/bash
# Treat unset variables as an error
set -u
#================================================= #=================================================
# GENERIC STARTING # GENERIC STARTING
#================================================= #=================================================
@ -36,7 +34,6 @@ ynh_mysql_remove_db "$app" "$db_name"
#================================================= #=================================================
ynh_secure_remove "/var/www/$app" ynh_secure_remove "/var/www/$app"
ynh_secure_remove "/home/yunohost.app/$app"
#================================================= #=================================================
# REMOVE FAIL2BAN CONFIGURATION # REMOVE FAIL2BAN CONFIGURATION
@ -51,10 +48,6 @@ ynh_remove_fail2ban_config
ynh_remove_fpm_config ynh_remove_fpm_config
ynh_remove_nginx_config ynh_remove_nginx_config
# Reload services
systemctl restart php5-fpm
systemctl reload nginx
#================================================= #=================================================
# REMOVE DEDICATED USER # REMOVE DEDICATED USER
#================================================= #=================================================