X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fupdatebase.CENTOS;h=a315b96c4752f6330757402434e618b1c9224a96;hp=6f5813aa7ef4069eabb31af5d70ee3da8b67056d;hb=056eb4e90e13b2d8f7cbb8c3b875f35bf0fa207e;hpb=a6f3eaed0a1eebb5c58853fb9faa8bfbec404de3 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