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:
parent
a272021c43
commit
5a878fd990
1 changed files with 1 additions and 2 deletions
|
@ -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
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue