Allow to control if the ZSH is set as a default shell
@@ -36,6 +36,7 @@ else
echo "[INFO] ZSH shell has been installed"
fi
+if [ "$CP_CAP_SHELL_LIST_ZSH_SET_AS_DEFAULT" == "true" ]; then
echo "[INFO] Setting ZSH as a default shell"
chsh -s $(which zsh) root && \
@@ -47,7 +48,9 @@ if [ $_install_result -ne 0 ]; then
else
echo "[INFO] ZSH shell is a default for root and $OWNER now"
fi
-
+else
+ echo "[INFO] ZSH will not be set as a default shell. It is not requested"
+fi
_oh_my_zsh_url=${CP_CAP_SHELL_LIST_ZSH_OH_MY_URL:-https://cloud-pipeline-oss-builds.s3.amazonaws.com/tools/zsh/oh-my-zsh/install.sh}
echo "[INFO] Installing 'oh-my-zsh' framework from '${_oh_my_zsh_url}'"
