1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/minchat_ynh.git synced 2024-09-03 19:36:29 +02:00
minchat_ynh/scripts/remove
2015-04-06 17:46:57 +02:00

15 lines
292 B
Bash

#!/bin/bash
app=minchat
# Retrieve arguments
domain=$(sudo yunohost app setting $app domain)
# 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