1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mumbleserver_ynh.git synced 2024-09-03 19:46:03 +02:00

[mod] remove: enhance reading: break lines, comments.

This commit is contained in:
Moul 2017-05-23 11:48:11 +02:00
parent b07dfbdc56
commit 81c9ccc4ee

View file

@ -1,14 +1,18 @@
#!/bin/bash
app=mumbleserver
#getting port used by mumble to close it
# Getting port used by mumble to close it
port=$(sudo yunohost app setting $app port)
#uninstall mumble and its dependencies
# Uninstall mumble and its dependencies
sudo apt-get autoremove -y mumble-server > /dev/null 2>&1
#close ports
# Close ports
sudo yunohost firewall disallow Both $port > /dev/null 2>&1
sudo yunohost firewall disallow --ipv6 Both $port > /dev/null 2>&1
#removing config file
# Removing config file
sudo rm -f /etc/mumble-server.ini
# Remove mumble-server service