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: use apt, 'firewall disallow' alreay does it for IP6.

This commit is contained in:
Moul 2017-05-23 11:56:34 +02:00
parent 244b440fc9
commit 80f7ac5733

View file

@ -11,12 +11,11 @@ app=mumbleserver
# Getting port used by mumble to close it # Getting port used by mumble to close it
port=$(ynh_app_setting_get $app port) port=$(ynh_app_setting_get $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 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
# Removing config file # Removing config file
sudo rm -f /etc/mumble-server.ini sudo rm -f /etc/mumble-server.ini