1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hextris_ynh.git synced 2024-09-03 19:16:05 +02:00
hextris_ynh/scripts/remove

45 lines
1.4 KiB
Text
Raw Permalink Normal View History

2014-08-18 18:37:19 +02:00
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2014-08-18 18:37:19 +02:00
2020-05-28 02:23:15 +02:00
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# LOAD SETTINGS
#=================================================
2020-05-30 17:51:26 +02:00
ynh_script_progression --message="Loading installation settings..." --weight=1
app=$YNH_APP_INSTANCE_NAME
2019-05-06 13:40:41 +02:00
domain=$(ynh_app_setting_get --app=$app --key=domain)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#=================================================
# STANDARD REMOVE
#=================================================
# REMOVE APP MAIN DIR
#=================================================
2020-05-30 17:51:26 +02:00
ynh_script_progression --message="Removing app main directory..." --weight=1
# Remove the app directory securely
2019-05-06 13:40:41 +02:00
ynh_secure_remove --file="$final_path"
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
2020-12-12 17:18:50 +01:00
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=2
2020-12-12 17:18:50 +01:00
# Remove the dedicated NGINX config
ynh_remove_nginx_config
2019-02-17 20:54:53 +01:00
#=================================================
# END OF SCRIPT
#=================================================
2020-05-28 02:23:15 +02:00
ynh_script_progression --message="Removal of $app completed" --last