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

43 lines
1.4 KiB
Text
Raw Normal View History

2016-06-27 10:27:19 +02:00
#!/bin/bash
2020-10-13 23:38:00 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2016-06-27 10:27:19 +02:00
2020-10-13 23:38:00 +02:00
source _common.sh
2016-06-27 10:27:19 +02:00
source /usr/share/yunohost/helpers
2020-10-13 23:38:00 +02:00
#=================================================
# LOAD SETTINGS
#=================================================
2023-10-15 09:56:27 +02:00
#REMOVEME? ynh_script_progression --message="Loading installation settings..." --weight=1
2020-10-13 23:38:00 +02:00
2023-10-15 09:56:27 +02:00
#REMOVEME? app=$YNH_APP_INSTANCE_NAME
2020-10-13 23:38:00 +02:00
2023-10-15 09:56:27 +02:00
#REMOVEME? domain=$(ynh_app_setting_get --app=$app --key=domain)
#REMOVEME? #REMOVEME? install_dir=$(ynh_app_setting_get --app=$app --key=install_dir)
2020-10-13 23:38:00 +02:00
#=================================================
# REMOVE APP MAIN DIR
#=================================================
2023-10-15 09:56:27 +02:00
#REMOVEME? ynh_script_progression --message="Removing app main directory..." --weight=2
2020-10-13 23:38:00 +02:00
# Remove the app directory securely
2023-10-15 09:56:27 +02:00
#REMOVEME? ynh_secure_remove --file="$install_dir"
2020-10-13 23:38:00 +02:00
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
2021-06-28 08:47:54 +02:00
ynh_script_progression --message="Removing NGINX web server configuration..." --weight=1
2020-10-13 23:38:00 +02:00
2022-06-22 00:42:37 +02:00
# Remove the dedicated NGINX config
2020-10-13 23:38:00 +02:00
ynh_remove_nginx_config
2016-06-27 10:27:19 +02:00
2020-10-13 23:38:00 +02:00
#=================================================
# END OF SCRIPT
#=================================================
2016-06-27 10:27:19 +02:00
2020-10-13 23:38:00 +02:00
ynh_script_progression --message="Removal of $app completed" --last