1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pelican_ynh.git synced 2024-09-03 19:46:35 +02:00

Update remove

This commit is contained in:
Ylies Chahi 2017-07-25 19:32:09 +02:00 committed by GitHub
parent a272021c43
commit 5a878fd990

View file

@ -18,11 +18,10 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain) domain=$(ynh_app_setting_get $app domain)
# Delete app directory and configurations # Delete app directory and configurations
sudo rm -rf "/var/www/${app}" sudo rm -rf "/var/www/"${app:-preventunsetvariable}
sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf" sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf"
[[ -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"
# Reload services # Reload services
sudo systemctl restart php5-fpm || true sudo systemctl restart php5-fpm || true
sudo systemctl reload nginx || true sudo systemctl reload nginx || true
sudo systemctl reload ssh