summaryrefslogtreecommitdiffstats
path: root/builder/dnbd3-rootfs/hooks/fetch-config.sh
diff options
context:
space:
mode:
authorjandob2016-03-29 19:06:18 +0200
committerjandob2016-03-29 19:06:18 +0200
commit252b073349d374dc23f55701c4abdc1ffb4ade97 (patch)
treeae5965509e6089a6a3a64fc28586b09be655a788 /builder/dnbd3-rootfs/hooks/fetch-config.sh
parentadd tee dependency (diff)
downloadsystemd-init-252b073349d374dc23f55701c4abdc1ffb4ade97.tar.gz
systemd-init-252b073349d374dc23f55701c4abdc1ffb4ade97.tar.xz
systemd-init-252b073349d374dc23f55701c4abdc1ffb4ade97.zip
add logging to file functionality
Diffstat (limited to 'builder/dnbd3-rootfs/hooks/fetch-config.sh')
-rwxr-xr-xbuilder/dnbd3-rootfs/hooks/fetch-config.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/builder/dnbd3-rootfs/hooks/fetch-config.sh b/builder/dnbd3-rootfs/hooks/fetch-config.sh
index 0b8d5a0a..7921a99f 100755
--- a/builder/dnbd3-rootfs/hooks/fetch-config.sh
+++ b/builder/dnbd3-rootfs/hooks/fetch-config.sh
@@ -10,6 +10,9 @@ exceptions.try
{
logging.set_commands_level debug
logging.set_level debug
+[[ "$SLX_LOG_FILE_PATH" == "" ]] && SLX_LOG_FILE_PATH=/var/log/openslx
+logging.set_log_file "$SLX_LOG_FILE_PATH"
+
# NOTE: "getarg" raises an exception so deactivate exceptions for now.
exceptions.deactivate
configuration_file_name="$(getarg slx_configuration_filename=)"