Skip to content

Commit

Permalink
trying stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhitestratiform committed Jun 20, 2024
1 parent 24d446b commit 45a3d4f
Showing 1 changed file with 7 additions and 35 deletions.
42 changes: 7 additions & 35 deletions mdct-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -340,47 +340,21 @@ if ! which op > /dev/null ; then
brew install 1password-cli
fi

# Install go
if ! which go > /dev/null ; then
echo "brew installing go"
brew install go
fi

# Install Kion
if ! which kion > /dev/null ; then
echo "brew installing kion"
brew install kionsoftware/tap/kion-cli
if [ "$CI" != "true" ]; then
if ! which kion > /dev/null ; then
echo "brew installing kion"
brew install kionsoftware/tap/kion-cli
fi
fi

# Output the kion configuration to a file in the home directory
# kion_config_file="$HOME/.kion.yml"

# if [ ! -f "$kion_config_file" ]; then
# echo "creating a kion config file"
# read -p "Please enter your EUA ID to be used for Kion CLI. If you do not have an EUA ID yet enter your first name to temporarily proceed: " user_id
# cat <<EOL > $kion_config_file
# kion:
# url: https://cloudtamer.cms.gov
# api_key: ""
# username: $user_id
# idms_id: "2"
# saml_metadata_file: ""
# saml_sp_issuer: ""
# EOL
# echo "Kion configuration file created at $kion_config_file"
# else
# echo "Kion configuration file already exists at $kion_config_file. Skipping creation."
# fi

kion_config_file="$HOME/.kion.yml"

if [ ! -f "$kion_config_file" ]; then
if [ "$CI" != "true" ]; then
echo "creating a kion config file"
read -p "Please enter your EUA ID to be used for Kion CLI. If you do not have an EUA ID yet enter your first name to temporarily proceed: " user_id
else
user_id="ci-user"
fi
echo "creating a kion config file"
read -p "Please enter your EUA ID to be used for Kion CLI. If you do not have an EUA ID yet enter your first name to temporarily proceed: " user_id
cat <<EOL > $kion_config_file
kion:
url: https://cloudtamer.cms.gov
Expand All @@ -395,8 +369,6 @@ else
echo "Kion configuration file already exists at $kion_config_file. Skipping creation."
fi

echo "Kion configuration file created at $kion_config_file"

# Loop through each repository URL
for url in "${repo_urls[@]}"; do
# Extract the repository name from the URL
Expand Down

0 comments on commit 45a3d4f

Please sign in to comment.