qr_ynh/scripts/remove

23 lines
743 B
Plaintext
Raw Normal View History

2019-08-12 23:55:33 +02:00
#!/bin/bash
source /usr/share/yunohost/helpers
2020-10-25 16:31:23 +01:00
ynh_script_progression --message="Loading installation settings..."
2019-08-12 23:55:33 +02:00
app=$YNH_APP_INSTANCE_NAME
2019-08-13 21:35:51 +02:00
domain=$(ynh_app_setting_get --app=$app --key=domain)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
2020-10-25 16:31:23 +01:00
ynh_script_progression --message="Removing app main directory..."
2019-08-12 23:55:33 +02:00
ynh_secure_remove --file="$final_path"
2022-03-03 17:58:37 +01:00
ynh_script_progression --message="Removing NGINX web server configuration..."
2019-08-12 23:55:33 +02:00
ynh_remove_nginx_config
2022-03-03 17:58:37 +01:00
ynh_script_progression --message="Removing PHP-FPM configuration..."
2019-08-13 21:35:51 +02:00
ynh_remove_fpm_config
2020-10-25 16:31:23 +01:00
ynh_script_progression --message="Removing the dedicated system user..."
2019-08-13 21:35:51 +02:00
ynh_system_user_delete --username=$app
2020-10-31 22:01:13 +01:00
ynh_script_progression --message="Removal of $app completed" --last