summaryrefslogtreecommitdiffstats
path: root/builder/dnbd3-rootfs/hooks/fetch-config.sh
diff options
context:
space:
mode:
authortorben2016-03-01 21:03:04 +0100
committertorben2016-03-01 21:03:04 +0100
commit871d753fee920a4911862d5271bb55317c93798b (patch)
tree8f7717f5704226ee113f666936826c526646df68 /builder/dnbd3-rootfs/hooks/fetch-config.sh
parentchange subshell pattern for variable scoping (diff)
downloadsystemd-init-871d753fee920a4911862d5271bb55317c93798b.tar.gz
systemd-init-871d753fee920a4911862d5271bb55317c93798b.tar.xz
systemd-init-871d753fee920a4911862d5271bb55317c93798b.zip
Fix.
Diffstat (limited to 'builder/dnbd3-rootfs/hooks/fetch-config.sh')
-rwxr-xr-xbuilder/dnbd3-rootfs/hooks/fetch-config.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/builder/dnbd3-rootfs/hooks/fetch-config.sh b/builder/dnbd3-rootfs/hooks/fetch-config.sh
index 354bbcc6..243abae5 100755
--- a/builder/dnbd3-rootfs/hooks/fetch-config.sh
+++ b/builder/dnbd3-rootfs/hooks/fetch-config.sh
@@ -9,22 +9,21 @@ core.import logging
# endregion
( # subshell for variable scoping
logging.set_commands_level debug
-logging.set_level debug
-
-configuration_file_name="$(getargs slx_configuration_filename=)"
+configuration_file_name="$(getarg slx_configuration_filename=)"
if [ -z "$configuration_file_name" ]; then
configuration_file_name='config'
fi
-
-slx_server="$(getargs slxsrv=)"
-slx_server_base="$(getargs slxbase=)"
+slx_server="$(getarg slxsrv=)"
+slx_server_base="$(getarg slxbase=)"
+logging.set_level debug
logging.info 'Getting configuration file.'
IFS_backup="$IFS"
IFS=','
for host in ${slx_server}; do
logging.info "Trying host \"$host\"."
- if wget --timeout 5 "http://${host}/${slx_server_base}${configuration_file_name}" \
+ if wget --timeout 5 \
+ "http://${host}/${slx_server_base}${configuration_file_name}" \
--output-document '/etc/openslx'
then
break