#!/bin/bash app="jappix" # Retrieve arguments domain=$(sudo yunohost app setting "$app" domain) # Remove sources and configuration sudo rm -rf "/var/www/${app}" sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf" # Reload services sudo service nginx reload