diff --git a/conf/shellinabox b/conf/shellinabox index bb4ee0a..7e8a865 100644 --- a/conf/shellinabox +++ b/conf/shellinabox @@ -1,4 +1,4 @@ -hould shellinaboxd start automatically +# Should shellinaboxd start automatically SHELLINABOX_DAEMON_START=1 # TCP port that shellinboxd's webserver listens on diff --git a/scripts/install b/scripts/install index 11d6955..83e7e30 100644 --- a/scripts/install +++ b/scripts/install @@ -30,5 +30,3 @@ sudo service shellinabox restart sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/shellinabox.conf sudo service nginx reload - -sudo yunohost app ssowatconf diff --git a/scripts/remove b/scripts/remove index 66d00a6..564db69 100644 --- a/scripts/remove +++ b/scripts/remove @@ -8,11 +8,12 @@ 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" +sudo apt-get remove --purge -y -qq shellinabox || echo "ShellInABox already uninstalled" + +# Remove Shell In A Box configuration +sudo rm -f /etc/default/shellinabox # Remove Nginx proxy configuration -sudo rm -f sudo rm /etc/nginx/conf.d/$domain.d/shellinabox.conf +sudo rm -f /etc/nginx/conf.d/$domain.d/shellinabox.conf sudo service nginx reload - -sudo yunohost app ssowatconf