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

54 lines
1.6 KiB
Text
Raw Normal View History

2015-06-18 23:40:52 +02:00
#!/bin/bash
2020-06-14 06:25:54 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2015-06-18 23:40:52 +02:00
2020-06-14 06:25:54 +02:00
source _common.sh
2016-12-24 12:38:35 +01:00
source /usr/share/yunohost/helpers
2020-06-14 06:25:54 +02:00
#=================================================
# LOAD SETTINGS
#=================================================
ynh_script_progression --message="Loading installation settings..."
2016-12-24 12:38:35 +01:00
app=$YNH_APP_INSTANCE_NAME
2020-06-14 06:25:54 +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
#=================================================
ynh_script_progression --message="Removing app main directory..."
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Removing nginx web server configuration..."
# Remove the dedicated nginx config
ynh_remove_nginx_config
2016-12-24 12:38:35 +01:00
2020-06-14 06:25:54 +02:00
#=================================================
# REMOVE PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Removing php-fpm configuration..."
2016-12-24 12:38:35 +01:00
2020-06-14 06:25:54 +02:00
# Remove the dedicated php-fpm config
ynh_remove_fpm_config
2015-06-18 23:40:52 +02:00
2020-06-14 06:25:54 +02:00
#=================================================
# END OF SCRIPT
#=================================================
2015-06-18 23:40:52 +02:00
2020-06-14 06:25:54 +02:00
ynh_script_progression --message="Removal of $app completed"