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:
parent
81c9ccc4ee
commit
244b440fc9
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue