1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shellinabox_ynh.git synced 2024-09-03 20:26:12 +02:00
shellinabox_ynh/scripts/remove
2015-05-08 12:03:12 +02:00

18 lines
486 B
Bash

#!/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