1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/scrumblr_ynh.git synced 2024-09-03 20:16:29 +02:00

Update remove

This commit is contained in:
frju365 2017-01-29 22:31:35 +01:00 committed by GitHub
parent eb1b700094
commit ed17551d87

View file

@ -7,18 +7,14 @@ set -eu
# Retrieve app settings
domain=$(ynh_app_setting_get "$app" domain)
# Stop haste
sudo systemctl stop "$app".service
# Remove sources
sudo rm -rf "/opt/"${app}
sudo rm -rf "/var/www/$app"
# Remove nginx configuration file
[[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf"
# Remove init script
sudo systemctl disable "$app".service
sudo rm -f /etc/systemd/system/"$app".service
sudo systemctl daemon-reload
# Remove monitor