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:
parent
b07dfbdc56
commit
81c9ccc4ee
1 changed files with 8 additions and 4 deletions
|
@ -1,14 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
app=mumbleserver
|
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)
|
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
|
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 Both $port > /dev/null 2>&1
|
||||||
sudo yunohost firewall disallow --ipv6 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
|
sudo rm -f /etc/mumble-server.ini
|
||||||
|
|
||||||
# Remove mumble-server service
|
# Remove mumble-server service
|
||||||
|
|
Loading…
Add table
Reference in a new issue