#!/bin/bash # Exit on command errors and treat unset variables as an error set -u # Source app helpers source _common.sh source /usr/share/yunohost/helpers app=$YNH_APP_INSTANCE_NAME # Retrieve app settings domain=$(ynh_app_setting_get $app domain) # Stop and remove service ynh_remove_systemd_config # Remove sources ynh_secure_remove "/var/www/$app" # Remove nginx configuration file ynh_remove_nginx_config # Remove user and data ynh_system_user_delete $app # Remove monitor sudo yunohost service remove $app # Remove Nodejs ynh_remove_nodejs