mirror of
https://github.com/YunoHost-Apps/mumbleserver_ynh.git
synced 2024-09-03 19:46:03 +02:00
forcing super user password not to be empty
This commit is contained in:
parent
51a99045a0
commit
2e0ca9c5d3
2 changed files with 10 additions and 0 deletions
|
@ -19,6 +19,12 @@ sudo yunohost app checkport $port
|
||||||
if [[ ! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#check if su_password is not empty
|
||||||
|
if [[ -n $su_passwd ]]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Save app settings
|
# Save app settings
|
||||||
sudo yunohost app setting $app port -v "$port"
|
sudo yunohost app setting $app port -v "$port"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
app=mumbleserver
|
app=mumbleserver
|
||||||
|
#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
|
||||||
sudo apt-get autoremove -y mumble-server > /dev/null 2>&1
|
sudo apt-get autoremove -y mumble-server > /dev/null 2>&1
|
||||||
|
#close ports
|
||||||
sudo yunohost firewall disallow Both $port > /dev/null 2>&1
|
sudo yunohost firewall disallow Both $port > /dev/null 2>&1
|
||||||
|
#removing config file
|
||||||
sudo rm -f /etc/mumble-server.ini
|
sudo rm -f /etc/mumble-server.ini
|
Loading…
Add table
Reference in a new issue