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

51 lines
1.6 KiB
Text
Raw Normal View History

2017-03-17 12:10:31 +01:00
#!/bin/bash
2020-10-08 18:48:04 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2017-03-17 12:10:31 +01:00
2018-03-19 03:56:00 +01:00
source _common.sh
2020-10-08 18:48:04 +02:00
source /usr/share/yunohost/helpers
#=================================================
# LOAD SETTINGS
#=================================================
ynh_script_progression --message="Loading installation settings..." --weight=1
app=$YNH_APP_INSTANCE_NAME
2017-03-17 12:10:31 +01:00
2020-10-08 18:48:04 +02:00
domain=$(ynh_app_setting_get --app=$app --key=domain)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
2018-03-19 03:56:00 +01:00
2020-10-08 18:48:04 +02:00
#=================================================
# REMOVE DEPENDENCIES
#=================================================
ynh_script_progression --message="Removing dependencies..." --weight=1
# Remove metapackage and its dependencies
2018-03-19 03:56:00 +01:00
ynh_remove_app_dependencies
2017-03-17 12:10:31 +01:00
2020-10-08 18:48:04 +02:00
#=================================================
# REMOVE APP MAIN DIR
#=================================================
ynh_script_progression --message="Removing SVG-edit main directory..." --weight=3
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
2017-03-17 12:10:31 +01:00
2020-10-08 18:48:04 +02:00
# Remove the dedicated NGINX config
2018-03-19 03:56:00 +01:00
ynh_remove_nginx_config
2020-10-08 18:48:04 +02:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of SVG-edit completed" --last