2016-09-09 11:07:28 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
|
|
|
|
# Source YunoHost helpers
|
2017-09-17 11:03:01 +02:00
|
|
|
source /usr/share/yunohost/helpers
|
2016-09-09 11:07:28 +02:00
|
|
|
|
|
|
|
# Retrieve app settings
|
2017-09-17 11:03:01 +02:00
|
|
|
domain=$(ynh_app_setting_get "$app" domain)
|
2016-09-09 11:07:28 +02:00
|
|
|
|
|
|
|
# Remove sources
|
2017-09-17 11:03:01 +02:00
|
|
|
systemctl stop $app
|
|
|
|
systemctl disable $app
|
|
|
|
sudo rm -rf /home/yunohost.app/$app
|
|
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
|
|
|
sudo rm -f /etc/systemd/system/$app.service
|
2016-09-09 11:07:28 +02:00
|
|
|
|
|
|
|
# Reload nginx service
|
2017-09-17 11:03:01 +02:00
|
|
|
sudo service nginx reload
|