23 lines
743 B
Bash
Executable File
23 lines
743 B
Bash
Executable File
#!/bin/bash
|
|
source /usr/share/yunohost/helpers
|
|
|
|
ynh_script_progression --message="Loading installation settings..."
|
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
|
|
|
ynh_script_progression --message="Removing app main directory..."
|
|
ynh_secure_remove --file="$final_path"
|
|
|
|
ynh_script_progression --message="Removing NGINX web server configuration..."
|
|
ynh_remove_nginx_config
|
|
|
|
ynh_script_progression --message="Removing PHP-FPM configuration..."
|
|
ynh_remove_fpm_config
|
|
|
|
ynh_script_progression --message="Removing the dedicated system user..."
|
|
ynh_system_user_delete --username=$app
|
|
|
|
ynh_script_progression --message="Removal of $app completed" --last
|