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

[enh] remove: add 'set -u', source helpers, retrieve arg with helper.

This commit is contained in:
Moul 2017-05-23 11:51:39 +02:00
parent 81c9ccc4ee
commit 244b440fc9

View file

@ -1,9 +1,15 @@
#!/bin/bash #!/bin/bash
# Exit and treat unset variables as an error
set -u
# Source YunoHost helpers
source /usr/share/yunohost/helpers
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=$(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-get autoremove -y mumble-server > /dev/null 2>&1