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

53 lines
1.4 KiB
Text
Raw Normal View History

2013-12-24 13:37:55 +01:00
#!/bin/bash
2017-09-02 22:57:43 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source /usr/share/yunohost/helpers
2017-09-02 22:57:43 +02:00
#=================================================
# LOAD SETTINGS
#=================================================
# Get multi-instances specific variables
2016-08-24 19:51:23 +02:00
app=$YNH_APP_INSTANCE_NAME
2013-12-24 13:37:55 +01:00
# Retrieve arguments
domain=$(ynh_app_setting_get "$app" domain)
2017-09-02 22:57:43 +02:00
final_path=$(ynh_app_setting_get $app final_path)
#=================================================
# STANDARD REMOVE
#=================================================
# REMOVE APP MAIN DIR
#=================================================
# Remove the app directory securely
ynh_secure_remove "$final_path"
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================
2016-08-24 19:51:23 +02:00
2017-09-02 22:57:43 +02:00
# Remove the dedicated nginx config
ynh_remove_nginx_config
#=================================================
# REMOVE PHP-FPM CONFIGURATION
#=================================================
# Remove the dedicated php-fpm config
ynh_remove_fpm_config
2017-09-02 22:57:43 +02:00
#=================================================
# GENERIC FINALIZATION
#=================================================
# REMOVE DEDICATED USER
#=================================================
2016-11-21 16:03:27 +01:00
2017-09-02 22:57:43 +02:00
# Delete a system user
ynh_system_user_delete $app