|
@@ -58,6 +58,7 @@ if [ -d /var/www/wifiadmin/ ]; then
|
|
|
ynh_secure_remove /var/www/wifiadmin/
|
|
|
fi
|
|
|
|
|
|
+
|
|
|
if [ $firmware_nonfree = "yes" ]; then
|
|
|
firmware_nonfree=1
|
|
|
ynh_app_setting_set --app=$app --key=firmware_nonfree --value=$firmware_nonfree
|
|
@@ -84,10 +85,10 @@ if [ -f /etc/nginx/conf.d/*.d/$app.conf ]; then
|
|
|
ynh_secure_remove /etc/nginx/conf.d/*.d/$app.conf
|
|
|
ynh_systemd_action --service_name=nginx --action=reload
|
|
|
fi
|
|
|
-if [ -f /etc/php/*/fpm/pool.d/$app.conf ]; then
|
|
|
- ynh_secure_remove /etc/php/*/fpm/pool.d/$app.conf
|
|
|
- ynh_systemd_action --service_name=php$YNH_DEFAULT_PHP_VERSION-fpm --action=reload
|
|
|
-fi
|
|
|
+
|
|
|
+for php_path in $(ls /etc/php/*/fpm/pool.d/$app.conf 2> /dev/null); do
|
|
|
+ ynh_secure_remove $php_path
|
|
|
+done
|
|
|
|
|
|
if [ -d /var/www/$app ]; then
|
|
|
ynh_secure_remove /var/www/$app
|