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

23 lines
590 B
Text
Raw Normal View History

2015-05-08 12:03:12 +02:00
#!/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 -y -qq shellinabox || echo "ShellInABox already uninstalled"
# Remove Shell In A Box configuration
sudo rm -f /etc/default/shellinabox
2015-05-08 12:03:12 +02:00
# Remove service
sudo yunohost service remove shellinabox
2015-05-08 12:03:12 +02:00
# Remove Nginx proxy configuration
sudo rm -f /etc/nginx/conf.d/$domain.d/shellinabox.conf
2015-05-08 12:03:12 +02:00
sudo service nginx reload