Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

Make sure LOGDIR exists
authorMichael Prokop
Fri Sep 21 11:44:49 2007 +0200 (14 months ago)
changeset 1048c0de19dca6f
manifest8c0de19dca6f
parent 103878f84269c2c
child 105da9ff9aaf794
Make sure LOGDIR exists
grml-live
--- a/grml-live Fri Sep 21 11:42:00 2007 +0200
+++ b/grml-live Fri Sep 21 11:44:49 2007 +0200
@@ -4,7 +4,7 @@
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2 or any later version.
-# Latest change: Thu Sep 20 13:25:31 CEST 2007 [mika]
+# Latest change: Fri Sep 21 11:44:43 CEST 2007 [mika]
################################################################################
# read configuration files, set some misc variables {{{
@@ -63,7 +63,7 @@ trap bailout 1 2 3 15
[ -n "$RELEASENAME" ] || RELEASENAME="grml-live rocks"
[ -n "$LOGDIR" ] || LOGDIR="/var/log/fai/dirinstall/$HOSTNAME"
-[ -d "$LOGDIR" ] || mkdir $LOGDIR
+[ -d "$LOGDIR" ] || mkdir -p $LOGDIR
LOGFILE="$LOGDIR/grml-live.conf"
# }}}