From 8dc13741e25e65b68f39e1e373d88cb75b0dfe3c Mon Sep 17 00:00:00 2001 From: Wind4 Date: Sun, 28 Oct 2018 16:10:23 +0800 Subject: [PATCH] Fix missing tar --- scripts/install-rhel.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/install-rhel.sh b/scripts/install-rhel.sh index 9ca66e9..47014c4 100644 --- a/scripts/install-rhel.sh +++ b/scripts/install-rhel.sh @@ -23,6 +23,13 @@ if [ -f '/etc/init.d/vlmcsd' ]; then exit 1 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 echo 'Installing wget ...' yum -q -y install wget