iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename ian to iank
[automated-distro-installer]
/
fai
/
config
/
hooks
/
updatebase.CENTOS
diff --git
a/fai/config/hooks/updatebase.CENTOS
b/fai/config/hooks/updatebase.CENTOS
index 6f5813aa7ef4069eabb31af5d70ee3da8b67056d..a315b96c4752f6330757402434e618b1c9224a96 100755
(executable)
--- a/
fai/config/hooks/updatebase.CENTOS
+++ b/
fai/config/hooks/updatebase.CENTOS
@@
-4,9
+4,9
@@
if [ ! -f $target/etc/resolv.conf ]; then
cp /etc/resolv.conf $target/etc
fi
cp /etc/resolv.conf $target/etc
fi
-if [
"$verbose"
]; then
+if [
X$verbose = X1
]; then
echo "Updating base"
echo "Updating base"
- $ROOTCMD yum -y update
2>&1 |
tee -a $LOGDIR/software.log
+ $ROOTCMD yum -y update
|&
tee -a $LOGDIR/software.log
else
$ROOTCMD yum -y update >> $LOGDIR/software.log
fi
else
$ROOTCMD yum -y update >> $LOGDIR/software.log
fi