1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreerp_ynh.git synced 2024-09-03 19:36:13 +02:00
libreerp_ynh/scripts/remove
2018-12-14 03:36:58 +01:00

28 lines
481 B
Bash

#!/bin/bash
set -u
source /usr/share/yunohost/helpers
source _future.sh
source _common.sh
app=$YNH_APP_INSTANCE_NAME
# Retrieve app settings
domain=$(ynh_app_setting_get "$app" domain)
final_path=$(ynh_app_setting_get "$app" final_path)
database=${domain//./-}
yunohost service stop $app
yunohost service remove $app
ynh_psql_remove_db $app $app
ynh_secure_remove "$final_path"
ynh_remove_app_dependencies
ynh_system_user_delete $app
ynh_remove_nginx_config
ynh_del_swap