[__coturn] Make shellcheck happy

This commit is contained in:
evilham 2020-05-15 22:26:33 +02:00
parent 61bd5b5958
commit 7efa697e5a
1 changed files with 6 additions and 3 deletions

View File

@ -89,15 +89,18 @@ if [ -f "$__object/parameter/pkey" ]; then
fi fi
if [ -f "$__object/parameter/extra-config" ]; then if [ -f "$__object/parameter/extra-config" ]; then
EXTRA_CONFIG=$(cat $__object/parameter/extra-config) EXTRA_CONFIG=$(cat "$__object/parameter/extra-config")
if [ "$EXTRA_CONFIG" = "-" ]; then if [ "$EXTRA_CONFIG" = "-" ]; then
EXTRA_CONFIG=$(cat "$__object/stdin") EXTRA_CONFIG=$(cat "$__object/stdin")
fi fi
export EXTRA_CONFIG export EXTRA_CONFIG
fi fi
export MIN_PORT=$(cat "$__object/parameter/min-port") MIN_PORT=$(cat "$__object/parameter/min-port")
export MAX_PORT=$(cat "$__object/parameter/max-port") export MIN_PORT
MAX_PORT=$(cat "$__object/parameter/max-port")
export MAX_PORT
# Generate and deploy configuration file. # Generate and deploy configuration file.
mkdir -p "$__object/files" mkdir -p "$__object/files"