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:
parent
b4037e4865
commit
9ad8abd2e2
1 changed files with 5 additions and 4 deletions
|
@ -58,6 +58,7 @@ if [ -d /var/www/wifiadmin/ ]; then
|
||||||
ynh_secure_remove /var/www/wifiadmin/
|
ynh_secure_remove /var/www/wifiadmin/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ $firmware_nonfree = "yes" ]; then
|
if [ $firmware_nonfree = "yes" ]; then
|
||||||
firmware_nonfree=1
|
firmware_nonfree=1
|
||||||
ynh_app_setting_set --app=$app --key=firmware_nonfree --value=$firmware_nonfree
|
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_secure_remove /etc/nginx/conf.d/*.d/$app.conf
|
||||||
ynh_systemd_action --service_name=nginx --action=reload
|
ynh_systemd_action --service_name=nginx --action=reload
|
||||||
fi
|
fi
|
||||||
if [ -f /etc/php/*/fpm/pool.d/$app.conf ]; then
|
|
||||||
ynh_secure_remove /etc/php/*/fpm/pool.d/$app.conf
|
for php_path in $(ls /etc/php/*/fpm/pool.d/$app.conf 2> /dev/null); do
|
||||||
ynh_systemd_action --service_name=php$YNH_DEFAULT_PHP_VERSION-fpm --action=reload
|
ynh_secure_remove $php_path
|
||||||
fi
|
done
|
||||||
|
|
||||||
if [ -d /var/www/$app ]; then
|
if [ -d /var/www/$app ]; then
|
||||||
ynh_secure_remove /var/www/$app
|
ynh_secure_remove /var/www/$app
|
||||||
|
|
Loading…
Add table
Reference in a new issue