mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
[fix] Use SECURE_REMOVE fonction
This commit is contained in:
parent
c5af71b8e0
commit
0cff37e483
2 changed files with 7 additions and 1 deletions
|
@ -23,7 +23,7 @@ ynh_mysql_drop_user $dbuser || true
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
# Delete app directory and configurations
|
# Delete app directory and configurations
|
||||||
sudo rm -rf "/var/www/${app}"
|
SECURE_REMOVE '/var/www/$app' # Delete directory application
|
||||||
sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf"
|
sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf"
|
||||||
sudo rm -f "/etc/php5/fpm/conf.d/20-${app}.ini"
|
sudo rm -f "/etc/php5/fpm/conf.d/20-${app}.ini"
|
||||||
[[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf"
|
[[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf"
|
||||||
|
|
|
@ -65,6 +65,12 @@ sudo cp -a ./nginx.conf "${nginx_conf}"
|
||||||
sudo cp -a ./php-fpm.conf "${phpfpm_conf}"
|
sudo cp -a ./php-fpm.conf "${phpfpm_conf}"
|
||||||
sudo cp -a ./php-fpm.ini "${phpfpm_ini}"
|
sudo cp -a ./php-fpm.ini "${phpfpm_ini}"
|
||||||
|
|
||||||
|
# Set ssowat config
|
||||||
|
if [ "$is_public" = "No" ];
|
||||||
|
then
|
||||||
|
ynh_app_setting_delete $app skipped_uris
|
||||||
|
fi
|
||||||
|
|
||||||
# Reload services
|
# Reload services
|
||||||
sudo systemctl reload php5-fpm
|
sudo systemctl reload php5-fpm
|
||||||
sudo systemctl reload nginx
|
sudo systemctl reload nginx
|
||||||
|
|
Loading…
Reference in a new issue