Allow to disable the CommonRepo installation, if it was already preinstalled
@@ -1003,7 +1003,7 @@ SSH_SERVER_EXEC_PATH='/usr/sbin/sshd'
if ! [ -f $SSH_SERVER_EXEC_PATH ] ;
then
# Check which package manager to use for SSH Server installation
- e=
+ SSH_INSTALL_COMMAND=
get_install_command_by_current_distr SSH_INSTALL_COMMAND "openssh-server"
if [ -z "$SSH_INSTALL_COMMAND" ] ;
@@ -1067,8 +1067,9 @@ echo
echo "Installing pipeline packages and code"
echo "-"
######################################################
-if [ -z "$DISTRIBUTION_URL" ] ;
-then
+CP_PIPE_COMMON_ENABLED=${CP_PIPE_COMMON_ENABLED:-"true"}
+if [ "$CP_PIPE_COMMON_ENABLED" == "true" ]; then
+ if [ -z "$DISTRIBUTION_URL" ]; then
echo "[ERROR] Distribution URL is not defined. Exiting"
exit 1
else
@@ -1091,10 +1092,13 @@ else
echo "[ERROR] Main repository install failed. Exiting"
exit "$_INSTALL_RESULT"
fi
+ cd ..
+ fi
+fi
# Init path for shell scripts from common repository
+if [ -d $COMMON_REPO_DIR/shell ]; then
chmod +x $COMMON_REPO_DIR/shell/*
export PATH=$PATH:$COMMON_REPO_DIR/shell
- cd ..
fi
# Install pipe CLI
