Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
install curl underhood if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
NarineM committed Jun 14, 2017
1 parent f707082 commit 3496085
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions installer/bundle/bundle_skel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3496085

Please sign in to comment.