libreerp_ynh/scripts/remove

30 lines
538 B
Text
Raw Normal View History

2015-09-14 17:12:17 +02:00
#!/bin/bash
2017-05-18 23:28:18 +02:00
set -u
2016-07-05 15:22:12 +02:00
2017-05-18 23:28:18 +02:00
source /usr/share/yunohost/helpers
source _future.sh
source _common.sh
2017-05-18 23:28:18 +02:00
app=$YNH_APP_INSTANCE_NAME
2016-07-05 15:22:12 +02:00
# Retrieve app settings
domain=$(ynh_app_setting_get "$app" domain)
2018-12-14 03:36:58 +01:00
final_path=$(ynh_app_setting_get "$app" final_path)
2018-12-16 19:41:40 +01:00
conf_file=$(ynh_app_setting_get "$app" conf_file)
2016-07-05 15:22:12 +02:00
2018-12-14 03:36:58 +01:00
yunohost service stop $app
yunohost service remove $app
ynh_psql_remove_db $app $app
ynh_secure_remove "$final_path"
2018-12-16 19:41:40 +01:00
ynh_secure_remove "$conf_file"
2017-05-18 23:28:18 +02:00
2018-12-14 03:36:58 +01:00
ynh_remove_app_dependencies
2018-12-14 03:36:58 +01:00
ynh_system_user_delete $app
2015-09-14 17:12:17 +02:00
2018-12-14 03:36:58 +01:00
ynh_remove_nginx_config
2018-09-27 00:31:17 +02:00
ynh_del_swap