2016-03-23 19:30:43 +01:00
|
|
|
#! /bin/bash
|
|
|
|
|
2016-04-04 22:35:43 +02:00
|
|
|
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
|
|
|
|
set -e
|
2016-05-23 20:59:08 +02:00
|
|
|
# causes the shell to exit if you try to use an uninitialised variable
|
|
|
|
set -u
|
2016-04-04 22:35:43 +02:00
|
|
|
|
2016-03-23 19:30:43 +01:00
|
|
|
app=bozon
|
|
|
|
domain=$(sudo yunohost app setting $app domain)
|
|
|
|
|
|
|
|
sudo rm -rf /var/www/$app
|
|
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
2016-05-23 20:59:08 +02:00
|
|
|
sudo rm -f /etc/php5/fpm/pool.d/$app.conf
|
2016-04-05 20:03:26 +02:00
|
|
|
sudo rm -rf /home/yunohost.app/$app
|
2016-04-06 19:29:59 +02:00
|
|
|
|
2016-05-23 20:59:08 +02:00
|
|
|
# Restart services
|
|
|
|
sudo service php5-fpm restart || true
|
|
|
|
sudo service nginx restart || true
|
2016-04-06 19:29:59 +02:00
|
|
|
sudo yunohost app ssowatconf
|