#!/bin/bash set -e # Retrieve arguments domain=$(sudo yunohost app setting shellinabox domain) path=$(sudo yunohost app setting shellinabox path) # Stop and remove shellinabox sudo service shellinabox stop || echo "ShellInABox already stopped" sudo apt-get remove --purge shellinabox || echo "ShellInABox already uninstalled" # Remove Nginx proxy configuration sudo rm -f sudo rm /etc/nginx/conf.d/$domain.d/shellinabox.conf sudo service nginx reload sudo yunohost app ssowatconf