#!/bin/bash #================================================= # GENERIC START #================================================= # IMPORT GENERIC HELPERS #================================================= source _common.sh source /usr/share/yunohost/helpers #================================================= # LOAD SETTINGS #================================================= app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get $app domain) # Delete app directory and configurations sudo rm -rf "/var/www/${app}" sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf" [[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf" # Reload services sudo systemctl restart php5-fpm || true sudo systemctl reload nginx || true sudo systemctl reload ssh