1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/keeweb_ynh.git synced 2024-09-03 19:26:33 +02:00
keeweb_ynh/scripts/remove

19 lines
447 B
Text
Raw Normal View History

2016-03-01 10:47:41 +01:00
#!/bin/bash
app=keeweb
# Retrieve arguments
domain=$(sudo yunohost app setting $app domain)
path=$(sudo yunohost app setting $app path)
dropbox=$(sudo yunohost app setting $app dropbox)
is_public=$(sudo yunohost app setting $app is_public)
# Remove sources
sudo rm -rf /var/www/$app
# Remove configuration files
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
# Restart services
sudo service nginx reload
sudo yunohost app ssowatconf