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

46 lines
1.3 KiB
Text
Raw Normal View History

2016-03-01 10:47:41 +01:00
#!/bin/bash
2018-11-30 14:47:44 +01:00
#=================================================
# GENERIC STARTING
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# LOAD SETTINGS
#=================================================
2021-02-08 09:32:10 +01:00
ynh_script_progression --message="Loading installation settings..."
2018-11-30 14:47:44 +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
#=================================================
2021-02-08 09:32:10 +01:00
# REMOVE APP MAIN DIR
2018-11-30 14:47:44 +01:00
#=================================================
2021-02-08 09:32:10 +01:00
ynh_script_progression --message="Removing app main directory..."
2016-03-01 10:47:41 +01:00
2021-02-08 09:32:10 +01:00
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
2016-03-01 10:47:41 +01:00
2018-11-30 14:47:44 +01:00
#=================================================
2021-02-08 09:32:10 +01:00
# REMOVE NGINX CONFIGURATION
2018-11-30 14:47:44 +01:00
#=================================================
2021-02-08 09:32:10 +01:00
ynh_script_progression --message="Removing NGINX web server configuration..."
2016-03-01 10:47:41 +01:00
2021-02-08 09:32:10 +01:00
# Remove the dedicated NGINX config
2018-11-30 14:47:44 +01:00
ynh_remove_nginx_config
2021-02-08 09:32:10 +01:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of $app completed" --last