Respect pre-installed SGE for deb-based images
@@ -344,6 +344,7 @@ IFS='@' read -r -a owner_info <<< "$OWNER"
OWNER_NAME="${owner_info[0]}"
if [ "$LINUX_DISTRIBUTION" = "debian" ]; then
+ if [ "$CP_CAP_SGE_PREINSTALLED" != "true" ]; then
rm -rf /var/lib/gridengine/
apt-get remove gridengine-client gridengine-common gridengine-master gridengine-exec --purge -y
@@ -365,6 +366,7 @@ if [ "$LINUX_DISTRIBUTION" = "debian" ]; then
if [ $? -ne 0 ]; then
pipe_log_warn "Additional SGE packages were not installed, error is ignored" "$SGE_MASTER_SETUP_TASK"
fi
+ fi
## Configure default locale, see https://github.com/rocker-org/rocker/issues/19
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
