A yunohost package contains the main page for https://parley.be
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.0 KiB
42 lines
1.0 KiB
3 years ago
|
#!/bin/bash
|
||
|
|
||
|
#=================================================
|
||
|
# GENERIC START
|
||
|
#=================================================
|
||
|
# IMPORT GENERIC HELPERS
|
||
|
#=================================================
|
||
|
|
||
|
source /usr/share/yunohost/helpers
|
||
|
source _common.sh
|
||
|
|
||
|
#=================================================
|
||
|
# LOAD SETTINGS
|
||
|
#=================================================
|
||
|
|
||
|
app=$YNH_APP_INSTANCE_NAME
|
||
|
|
||
|
domain=$(ynh_app_setting_get $app domain)
|
||
|
path_url=$(ynh_app_setting_get $app path_url)
|
||
|
app_user=$(ynh_app_setting_get $app app_user)
|
||
|
www_path=$(ynh_app_setting_get $app www_path)
|
||
|
|
||
|
#=================================================
|
||
|
# STANDARD REMOVE
|
||
|
#=================================================
|
||
|
|
||
|
ynh_print_info "Removing static site..."
|
||
|
|
||
|
rm -rf $www_path
|
||
|
rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||
|
|
||
|
nginx -t > /dev/null
|
||
|
service nginx reload
|
||
|
|
||
|
#=================================================
|
||
|
# REMOVE DEDICATED USER
|
||
|
#=================================================
|
||
|
|
||
|
ynh_print_info "Removing system user..."
|
||
|
ynh_system_user_delete $app_user
|
||
|
|