mirror of
https://github.com/YunoHost-Apps/mumbleserver_ynh.git
synced 2024-09-03 19:46:03 +02:00
27 lines
643 B
Bash
27 lines
643 B
Bash
#!/bin/bash
|
|
|
|
#=================================================
|
|
# GENERIC START
|
|
#=================================================
|
|
# IMPORT GENERIC HELPERS
|
|
#=================================================
|
|
|
|
source _common.sh
|
|
source /usr/share/yunohost/helpers
|
|
|
|
app=mumbleserver
|
|
|
|
# Getting port used by mumble to close it
|
|
port=$(ynh_app_setting_get $app port)
|
|
|
|
# Uninstall Mumble and its dependencies
|
|
apt autoremove -y mumble-server > /dev/null 2>&1
|
|
|
|
# Close ports
|
|
yunohost firewall disallow Both $port > /dev/null 2>&1
|
|
|
|
# Removing config file
|
|
rm -f /etc/mumble-server.ini
|
|
|
|
# Remove mumble-server service
|
|
yunohost service remove mumble-server
|