2014-08-18 18:37:19 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-09-28 18:02:52 +02:00
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
2014-08-18 18:37:19 +02:00
|
|
|
|
2017-09-28 18:02:52 +02:00
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# LOAD SETTINGS
|
|
|
|
#=================================================
|
2019-02-17 20:54:53 +01:00
|
|
|
ynh_print_info "Loading installation settings..."
|
2017-09-28 18:02:52 +02:00
|
|
|
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
|
|
|
|
domain=$(ynh_app_setting_get $app domain)
|
2019-02-13 18:38:44 +01:00
|
|
|
final_path=$(ynh_app_setting_get $app final_path)
|
2017-09-28 18:02:52 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# STANDARD REMOVE
|
|
|
|
#=================================================
|
|
|
|
# REMOVE APP MAIN DIR
|
|
|
|
#=================================================
|
2019-02-17 20:54:53 +01:00
|
|
|
ynh_print_info "Removing app main directory"
|
2017-09-28 18:02:52 +02:00
|
|
|
|
|
|
|
# Remove the app directory securely
|
2019-02-13 18:38:44 +01:00
|
|
|
ynh_secure_remove "$final_path"
|
2017-09-28 18:02:52 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# REMOVE NGINX CONFIGURATION
|
|
|
|
#=================================================
|
2019-02-17 20:54:53 +01:00
|
|
|
ynh_print_info "Removing nginx web server configuration"
|
2017-09-28 18:02:52 +02:00
|
|
|
|
|
|
|
# Remove the dedicated nginx config
|
|
|
|
ynh_remove_nginx_config
|
2019-02-17 20:54:53 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_print_info "Removal of $app completed"
|