Skip to content

Commit

Permalink
fix moar bash
Browse files Browse the repository at this point in the history
  • Loading branch information
BYK committed Dec 31, 2024
1 parent a2ac10d commit 7b28dfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install/bootstrap-garage.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ if [[ $($garage bucket list | tail -1 | awk '{print $1}') != 'nodestore' ]]; the

$garage bucket create nodestore
key_info=$($garage key create nodestore-key | head -3 | tail -2)
key_id=$(echo "$key_info" | head -1 | awk '{print $1}')
key_secret=$(echo "$key_info" | tail -1 | awk '{print $1}')
key_id=$(echo "$key_info" | head -1 | awk '{print $3}')
key_secret=$(echo "$key_info" | tail -1 | awk '{print $3}')

$garage bucket allow --read --write --owner nodestore --key nodestore-key

sed -i -e "s/<GARAGE_KEY_ID>/$key_info/" $SENTRY_CONFIG_PY
sed -i -e "s/<GARAGE_KEY_ID>/$key_id/" $SENTRY_CONFIG_PY
sed -i -e "s/<GARAGE_SECRET_KEY>/$key_secret/" $SENTRY_CONFIG_PY
echo "Set Garage keys for SENTRY_NODESTORE_OPTIONS in $SENTRY_CONFIG_PY"
else
Expand Down

0 comments on commit 7b28dfb

Please sign in to comment.