1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00
rocketchat_ynh/scripts/remove
2017-07-18 14:41:24 +02:00

21 lines
560 B
Bash

#!/bin/bash
set -u
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source /usr/share/yunohost/helpers
app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain)
sudo rm -rf /var/www/rocketchat
sudo rm -f /etc/nginx/conf.d/$domain.d/rocketchat.conf
sudo rm -Rf /var/log/rocketchat/
sudo systemctl stop Rocketchat.service
sudo rm -f /etc/systemd/system/Rocketchat.service
sudo systemctl restart nginx