1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jitsi_ynh.git synced 2024-09-03 19:35:57 +02:00
jitsi_ynh/scripts/remove
2015-01-14 10:55:14 +01:00

34 lines
958 B
Bash

#!/bin/bash
domain=$(sudo yunohost app setting jitsi domain)
sudo service jitsi-videobridge stop
sudo service jicofo stop
sudo rm -rf /opt/yunohost/jicofo
sudo rm -rf /opt/yunohost/jitsi-videobridge
sudo rm /etc/default/jitsi-videobridge
sudo rm /etc/default/jicofo
sudo update-rc.d jitsi-videobridge remove
sudo rm /etc/init.d/jitsi-videobridge
sudo yunohost service remove jitsi-videobridge
sudo update-rc.d jicofo remove
sudo rm /etc/init.d/jicofo
sudo yunohost service remove jicofo
jitsi_domain=jitsi.$domain
sudo rm /etc/metronome/conf.d/$jitsi_domain.cfg.lua
sudo service metronome restart
sudo rm /etc/nginx/conf.d/$domain.d/jitsi.conf
sudo service nginx reload
sudo yunohost app ssowatconf
sudo rm -rf /var/log/jitsi
sudo userdel jvb
sudo userdel jicofo
sudo groupdel jitsi