Skip to content

Commit

Permalink
iunno
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-does-weather committed Nov 7, 2024
1 parent 0be551e commit eea1203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/load-spatial-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ trap "kill 0" EXIT
# Get database service connection details from cf
cf curl "/v2/apps/$(cf app --guid "$TARGET")/env" | jq -r '.system_env_json.VCAP_SERVICES["aws-rds"][0].credentials' | jq -r '[.host, .port, .db_name, .username, .password]|@tsv' |
while read -r host port db username password; do
echo "setting up SSH tunnel..."
echo "setting up SSH tunnel... $LOCAL_PORT ~ $db"
# open a tunnel
cf ssh -N -T -L "$LOCAL_PORT":"$host":"$port" "$TARGET" &
sleep 5
Expand Down

0 comments on commit eea1203

Please sign in to comment.