2016-03-01 10:47:41 +01:00
|
|
|
#!/bin/bash
|
2016-12-06 03:09:15 +01:00
|
|
|
|
2018-11-30 14:47:44 +01:00
|
|
|
#=================================================
|
|
|
|
# GENERIC STARTING
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# LOAD SETTINGS
|
|
|
|
#=================================================
|
|
|
|
|
2016-12-06 03:09:15 +01:00
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
|
2018-11-30 14:47:44 +01:00
|
|
|
domain=$(ynh_app_setting_get $app domain)
|
|
|
|
final_path=$(ynh_app_setting_get $app final_path)
|
2016-03-01 10:47:41 +01:00
|
|
|
|
2018-11-30 14:47:44 +01:00
|
|
|
#=================================================
|
|
|
|
# STANDARD REMOVE
|
|
|
|
#=================================================
|
|
|
|
# REMOVE THE MAIN DIR OF THE APP
|
|
|
|
#=================================================
|
2016-03-01 10:47:41 +01:00
|
|
|
|
2018-11-30 14:47:44 +01:00
|
|
|
ynh_secure_remove "$final_path"
|
2016-03-01 10:47:41 +01:00
|
|
|
|
2018-11-30 14:47:44 +01:00
|
|
|
#=================================================
|
|
|
|
# REMOVE THE NGINX CONFIGURATION
|
|
|
|
#=================================================
|
2016-03-01 10:47:41 +01:00
|
|
|
|
2018-11-30 14:47:44 +01:00
|
|
|
ynh_remove_nginx_config
|