diff --git a/install_packages.sh b/install_packages.sh index f9a3585..3d65798 100755 --- a/install_packages.sh +++ b/install_packages.sh @@ -152,12 +152,12 @@ function macos_install() { brew services start redis brew services start "postgresql@15" - # This is a workaround for a problem with the 1.3.7 version of xmlsec1. It forces a downgrade to 1.2.7. - # The Atlas Toy IDP uses xmlsec1 to sign the SAML requests. - # https://stackoverflow.com/questions/76805174/getting-key-not-found-with-xmlsec1-on-macos - local desired_sha="7f35e6ede954326a10949891af2dba47bbe1fc17" tmp_libxmlsec1_path=/tmp/libxmlsec1.rb - curl -o "${tmp_libxmlsec1_path}" "https://raw.githubusercontent.com/Homebrew/homebrew-core/${desired_sha}/Formula/libxmlsec1.rb" - HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --formula "${tmp_libxmlsec1_path}" + # # This is a workaround for a problem with the 1.3.7 version of xmlsec1. It forces a downgrade to 1.2.7. + # # The Atlas Toy IDP uses xmlsec1 to sign the SAML requests. + # # https://stackoverflow.com/questions/76805174/getting-key-not-found-with-xmlsec1-on-macos + # local desired_sha="7f35e6ede954326a10949891af2dba47bbe1fc17" tmp_libxmlsec1_path=/tmp/libxmlsec1.rb + # curl -o "${tmp_libxmlsec1_path}" "https://raw.githubusercontent.com/Homebrew/homebrew-core/${desired_sha}/Formula/libxmlsec1.rb" + # HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --formula "${tmp_libxmlsec1_path}" } @@ -184,6 +184,18 @@ unset rc EOF fi + if [[ ! -f ~/.bash_profile ]]; then + # Install skeleton .bashrc if one is not present + cat >> ~/.bashrc <<"EOF" +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi +EOF + fi + # Stop the annoying zsh default shell warning if [[ ! -f ~/.bash_profile ]] || ! grep -E BASH_SILENCE_DEPRECATION_WARNING ~/.bash_profile >/dev/null 2>&1 ; then echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> ~/.bash_profile