X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fupdatebase.CENTOS;h=a315b96c4752f6330757402434e618b1c9224a96;hb=056eb4e90e13b2d8f7cbb8c3b875f35bf0fa207e;hp=6f5813aa7ef4069eabb31af5d70ee3da8b67056d;hpb=3bd65f0ca635f1349626c2393a4dd8a50df64f54;p=automated-distro-installer diff --git a/fai/config/hooks/updatebase.CENTOS b/fai/config/hooks/updatebase.CENTOS index 6f5813a..a315b96 100755 --- 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 -if [ "$verbose" ]; then +if [ X$verbose = X1 ]; then 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