Fix missing tar

This commit is contained in:
Wind4 2018-10-28 16:10:23 +08:00
parent a1f84aa354
commit 8dc13741e2

View File

@ -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