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-02-01 22:11:15 +01:00 committed by GitHub
parent 06906a1b48
commit 7918041894

View file

@ -5,26 +5,26 @@ set -eu
# Retrieve app settings
domain=$(ynh_app_setting_get "$app" domain)
domain=$(ynh_app_setting_get $app domain)
sudo systemctl stop "$app".service
sudo systemctl stop $app.service
# Remove sources
sudo rm -rf "/var/www/$app"
sudo rm -rf /var/www/$app
# Remove nginx configuration file
[[ -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
# Remove haste user and data
sudo userdel -r "$app"
sudo userdel -r $app
# Remove init script
sudo systemctl disable "$app".service
sudo rm -f /etc/systemd/system/"$app".service
sudo systemctl disable $app.service
sudo rm -f /etc/systemd/system/$app.service
sudo systemctl daemon-reload
# Remove monitor
sudo yunohost service remove "$app"
sudo yunohost service remove $app
# Reload nginx service
sudo systemctl reload nginx.service