2016-04-29 16:32:48 +02:00
|
|
|
#!/bin/bash
|
2017-07-18 13:21:17 +02:00
|
|
|
set -u
|
2016-04-29 16:32:48 +02:00
|
|
|
|
2017-07-18 13:03:45 +02:00
|
|
|
#=================================================
|
|
|
|
# GENERIC START
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
2017-07-18 13:21:17 +02:00
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
|
|
|
domain=$(ynh_app_setting_get $app domain)
|
2016-04-29 16:32:48 +02:00
|
|
|
|
2017-07-19 11:13:17 +02:00
|
|
|
sudo systemctl stop Rocketchat.service
|
2016-04-29 16:32:48 +02:00
|
|
|
|
2017-07-19 13:32:24 +02:00
|
|
|
# remove Rocketchat from services
|
|
|
|
sudo yunohost service remove Rocketchat
|
|
|
|
|
2017-07-19 11:13:17 +02:00
|
|
|
sudo rm -rf /var/www/rocketchat
|
2016-04-29 16:32:48 +02:00
|
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/rocketchat.conf
|
2017-07-19 11:13:17 +02:00
|
|
|
sudo rm -rf /var/log/rocketchat/
|
2017-07-18 14:41:24 +02:00
|
|
|
sudo rm -f /etc/systemd/system/Rocketchat.service
|
2017-07-19 11:13:17 +02:00
|
|
|
|
2017-07-19 11:27:56 +02:00
|
|
|
sudo systemctl daemon-reload
|
2016-04-29 21:25:32 +02:00
|
|
|
sudo systemctl restart nginx
|