mirror of
https://github.com/YunoHost-Apps/mumbleserver_ynh.git
synced 2024-09-03 19:46:03 +02:00
[enh] install: add 'set -eu', retrieve args with env var.
This commit is contained in:
parent
b2e16316c0
commit
ca69b2971f
1 changed files with 8 additions and 7 deletions
|
@ -1,17 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#debug commands
|
#debug commands
|
||||||
#exec > >(tee /tmp/mumble-install.log)
|
#exec > >(tee /tmp/mumble-install.log)
|
||||||
#exec 2>&1
|
#exec 2>&1
|
||||||
|
|
||||||
app=mumbleserver
|
# Exit on command errors and treat unset variables as an error
|
||||||
|
set -eu
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
server_password=$1
|
app="mumbleserver"
|
||||||
su_passwd=$2
|
server_password=$YNH_APP_ARG_SERVER_LOGIN_PASSWORD
|
||||||
welcometext=$3
|
su_passwd=$YNH_APP_ARG_PASSWORD
|
||||||
port=$4
|
welcometext=$YNH_APP_ARG_WELCOMETEXT
|
||||||
registerName=$5
|
port=$YNH_APP_ARG_PORT
|
||||||
|
registerName=$YNH_APP_ARG_REGISTERNAME
|
||||||
|
|
||||||
# Source YunoHost helpers
|
# Source YunoHost helpers
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
Loading…
Add table
Reference in a new issue