1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shellinabox_ynh.git synced 2024-09-03 20:26:12 +02:00
shellinabox_ynh/scripts/remove

44 lines
1.1 KiB
Text
Raw Normal View History

2015-05-08 12:03:12 +02:00
#!/bin/bash
2017-08-28 16:34:15 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2017-04-20 19:34:26 +02:00
source /usr/share/yunohost/helpers
2017-08-28 16:34:15 +02:00
#=================================================
# LOAD SETTINGS
#=================================================
2017-04-20 19:34:26 +02:00
app=$YNH_APP_INSTANCE_NAME
2015-05-08 12:03:12 +02:00
2017-08-28 16:34:15 +02:00
domain=$(ynh_app_setting_get $app domain)
port=$(ynh_app_setting_get $app port)
#=================================================
# STANDARD REMOVE
#=================================================
# REMOVE SERVICE FROM ADMIN PANEL
#=================================================
if yunohost service status | grep -q $app
then
echo "Remove $app service"
yunohost service remove $app
fi
2015-05-08 12:03:12 +02:00
2017-08-28 16:34:15 +02:00
#=================================================
# REMOVE SHELLINABOX
#=================================================
2017-08-28 16:34:15 +02:00
ynh_package_autopurge shellinabox
2017-08-28 16:34:15 +02:00
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
2015-05-08 12:03:12 +02:00
2017-08-28 16:34:15 +02:00
# Remove the dedicated nginx config
ynh_remove_nginx_config