mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
26 lines
665 B
Bash
26 lines
665 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 systemctl stop Rocketchat.service
|
|
|
|
# remove Rocketchat from services
|
|
sudo yunohost service remove Rocketchat
|
|
|
|
sudo rm -rf /var/www/rocketchat
|
|
sudo rm -f /etc/nginx/conf.d/$domain.d/rocketchat.conf
|
|
sudo rm -rf /var/log/rocketchat/
|
|
sudo rm -f /etc/systemd/system/Rocketchat.service
|
|
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl restart nginx
|