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
|
2016-12-14 10:55:15 +01:00
|
|
|
|
2017-05-18 23:28:18 +02:00
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
2016-12-14 10:55:15 +01:00
|
|
|
|
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)
|
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"
|
2017-05-18 23:28:18 +02:00
|
|
|
|
2018-12-14 03:36:58 +01:00
|
|
|
ynh_remove_app_dependencies
|
2016-12-14 10:10:53 +01:00
|
|
|
|
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
|