Make sure LOGDIR exists
authorMichael Prokop <devnull@localhost>
Fri, 21 Sep 2007 09:44:49 +0000 (11:44 +0200)
committerMichael Prokop <devnull@localhost>
Fri, 21 Sep 2007 09:44:49 +0000 (11:44 +0200)
grml-live

index 407cc17..23052f5 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -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"
 # }}}