From 34960852b5a2437d702b8aaef06d856ef6dff02d Mon Sep 17 00:00:00 2001 From: Narine Mossikyan Date: Tue, 13 Jun 2017 14:05:51 -0700 Subject: [PATCH] install curl underhood if not present --- installer/bundle/bundle_skel.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/installer/bundle/bundle_skel.sh b/installer/bundle/bundle_skel.sh index 1c6d0be64..1fa6ac512 100644 --- a/installer/bundle/bundle_skel.sh +++ b/installer/bundle/bundle_skel.sh @@ -829,14 +829,19 @@ if [ "$installMode" = "I" -o "$installMode" = "U" ]; then cleanup_and_exit $INSTALL_SED fi curl_installed + if [ $? -ne 0 ]; then + echo "curl was not found, attempting to install curl..." + install_extra_package curl + fi + check_program_in_path curl if [ $? -ne 0 ]; then if [ -z "${forceFlag}" ]; then - echo "Error: curl is not installed, installation cannot continue." + echo "Error: curl was not installed, installation cannot continue." echo "You can run this shell bundle with --force; in this case, we will install omsagent," echo "but omsconfig (DSC configuration) will not be available and will need to be re-installed." cleanup_and_exit $INSTALL_CURL else - echo "curl is not installed, please install curl and re-install omsconfig (DSC configuration) later." + echo "curl was not installed, please install curl and re-install omsconfig (DSC configuration) later." echo "Installation will continue without installing omsconfig." fi fi