Support CP_CAP_SGE_PREINSTALLED in the SGE worker setup
@@ -218,11 +218,12 @@ if [ "$LINUX_DISTRIBUTION" = "debian" ]; then
echo "$MASTER_NAME" | tee "$SGE_ROOT"/"$SGE_CELL"/common/act_qmaster
elif [ "$LINUX_DISTRIBUTION" = "redhat" ]; then
+ export SGE_ROOT="/opt/sge"
+ if [ "$CP_CAP_SGE_PREINSTALLED" != "true" ]; then
yum remove -y -q gridengine-*
rm -rf /opt/sge/*
rm -rf /etc/rc.d/init.d/*.CLOUD_PIPELINE
- export SGE_ROOT="/opt/sge"
yum install -y -q perl perl-Env.noarch perl-Exporter.noarch perl-File-BaseDir.noarch \
perl-Getopt-Long.noarch perl-libs perl-POSIX-strptime.x86_64 \
perl-XML-Simple.noarch jemalloc munge-libs hwloc lesstif csh \
@@ -237,6 +238,7 @@ elif [ "$LINUX_DISTRIBUTION" = "redhat" ]; then
gridengine-guiinst \
gridengine-qmaster \
gridengine-qmon
+ fi
check_last_exit_code $? "All SGE packages were installed" "Fail to install SGE worker"
fi
