Explorar el Código

Fix missing tar

Wind4 hace 7 años
padre
commit
8dc13741e2
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      scripts/install-rhel.sh

+ 7 - 0
scripts/install-rhel.sh

@@ -23,6 +23,13 @@ if [ -f '/etc/init.d/vlmcsd' ]; then
   exit 1
   exit 1
 fi
 fi
 
 
+if [ ! -f '/bin/tar' ]; then
+  echo 'Installing tar ...'
+  yum -q -y install tar
+  check_result $? "Can't install tar."
+  echo 'Install tar succeed.'
+fi
+
 if [ ! -f '/usr/bin/wget' ]; then
 if [ ! -f '/usr/bin/wget' ]; then
   echo 'Installing wget ...'
   echo 'Installing wget ...'
   yum -q -y install wget
   yum -q -y install wget