1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

[fix] Residual php conf

This commit is contained in:
ljf (zamentur) 2021-11-11 16:52:13 +01:00 committed by GitHub
parent b4037e4865
commit 9ad8abd2e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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