summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-03-03 17:23:13 -0500
committerScott Moser <smoser@ubuntu.com>2016-03-03 17:23:13 -0500
commit72c71196d701a1398963b52a30e9ab34a2579a49 (patch)
treef9f28f70e3907436dcd0f054b12607cbf4df4f65
parentda39ad69e3ee240df7354eb2c2f33bdaba9194f6 (diff)
downloadvyos-cloud-init-72c71196d701a1398963b52a30e9ab34a2579a49.tar.gz
vyos-cloud-init-72c71196d701a1398963b52a30e9ab34a2579a49.zip
do not duplicate '-generator' in log ame
-rwxr-xr-xsystemd/cloud-init-generator2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/cloud-init-generator b/systemd/cloud-init-generator
index b09924ac..3bd2d6b3 100755
--- a/systemd/cloud-init-generator
+++ b/systemd/cloud-init-generator
@@ -16,7 +16,7 @@ debug() {
shift
[ "$lvl" -gt "$DEBUG_LEVEL" ] && return
if [ -z "$LOG" ]; then
- local log="$LOG_D/${0##*/}-generator.log"
+ local log="$LOG_D/${0##*/}.log"
{ : > "$log"; } >/dev/null 2>&1 && LOG="$log" ||
LOG="/dev/kmsg"
fi