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
|
||||
|
||||
#debug commands
|
||||
#exec > >(tee /tmp/mumble-install.log)
|
||||
#exec 2>&1
|
||||
|
||||
app=mumbleserver
|
||||
# Exit on command errors and treat unset variables as an error
|
||||
set -eu
|
||||
|
||||
# Retrieve arguments
|
||||
server_password=$1
|
||||
su_passwd=$2
|
||||
welcometext=$3
|
||||
port=$4
|
||||
registerName=$5
|
||||
app="mumbleserver"
|
||||
server_password=$YNH_APP_ARG_SERVER_LOGIN_PASSWORD
|
||||
su_passwd=$YNH_APP_ARG_PASSWORD
|
||||
welcometext=$YNH_APP_ARG_WELCOMETEXT
|
||||
port=$YNH_APP_ARG_PORT
|
||||
registerName=$YNH_APP_ARG_REGISTERNAME
|
||||
|
||||
# Source YunoHost helpers
|
||||
source /usr/share/yunohost/helpers
|
||||
|
|
Loading…
Add table
Reference in a new issue