projects
/
grml-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c9514b9
)
Fix usage of removal of latest FAI logs
author
Michael Prokop
<devnull@localhost>
Sun, 25 Nov 2007 19:08:30 +0000
(20:08 +0100)
committer
Michael Prokop
<devnull@localhost>
Sun, 25 Nov 2007 19:08:30 +0000
(20:08 +0100)
grml-live
patch
|
blob
|
history
diff --git
a/grml-live
b/grml-live
index
8b23f62
..
c3e8b53
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.
# 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: Sun Nov 25
18:29:07
CET 2007 [mika]
+# Latest change: Sun Nov 25
20:08:06
CET 2007 [mika]
################################################################################
# read configuration files, set some misc variables {{{
################################################################################
# read configuration files, set some misc variables {{{
@@
-68,6
+68,7
@@
bailout() {
log "------------------------------------------------------------------------------"
exit "$EXIT"
}
log "------------------------------------------------------------------------------"
exit "$EXIT"
}
+# trap bailout 1 2 3 6 9 14 15
trap bailout 1 2 3 15
# }}}
trap bailout 1 2 3 15
# }}}
@@
-90,16
+91,15
@@
fi
touch $LOGFILE
chown root:adm $LOGFILE
chmod 640 $LOGFILE
touch $LOGFILE
chown root:adm $LOGFILE
chmod 640 $LOGFILE
-# clean/zero logfile:
+# clean/zero
grml-live
logfile:
if [ -n "$ZERO_LOGFILE" ] ; then
echo -n > $LOGFILE
fi
if [ -n "$ZERO_LOGFILE" ] ; then
echo -n > $LOGFILE
fi
+# clean/zero/remove old FAI directory:
if [ -n "$ZERO_FAI_LOGFILE" ] ; then
if [ -d /var/log/fai/"$HOSTNAME" ] ; then
if [ -n "$ZERO_FAI_LOGFILE" ] ; then
if [ -d /var/log/fai/"$HOSTNAME" ] ; then
- rm -rf /var/log/fai/"$HOSTNAME"/"$(readlink last)"
-# rm -rf /var/log/fai/"$HOSTNAME"/"$(readlink last-softupdate)"
-# rm -rf /var/log/fai/"$HOSTNAME"/"$(readlink last-dirinstall)"
+ rm -rf /var/log/fai/"$HOSTNAME"/"$(readlink /var/log/fai/"$HOSTNAME"/last)"
fi
fi
fi
fi