Skip to content

Commit

Permalink
Commit curl url in install_foxx.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSBrown committed Jun 12, 2024
1 parent 51c427b commit 1bd3aba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions core/database/foxx/api/authz_router.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ router.get('/gridftp', function(req, res) {
break;
case "write":
console.log("Client: ", client, " write permissions?");
break;
case "create":
console.log("Client: ", client, " create permissions?");
req_perm = g_lib.PERM_WR_DATA;
Expand All @@ -47,6 +48,7 @@ router.get('/gridftp', function(req, res) {
throw g_lib.ERR_PERM_DENIED;
case "chdir":
console.log("Client: ", client, " chdir permissions?");
break;
case "lookup":
console.log("Client: ", client, " lookup permissions?");
// For TESTING, allow these actions
Expand Down
5 changes: 3 additions & 2 deletions scripts/install_foxx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ then
fi

basic_auth="$local_DATABASE_USER:$local_DATAFED_DATABASE_PASSWORD"
url="http://${local_DATAFED_DATABASE_HOST}:${local_DATABASE_PORT}/_api/database/user"
code=$(curl -s -o /dev/null -w "%{http_code}" --user "$basic_auth" "$url")
url="http://${local_DATAFED_DATABASE_HOST}:${local_DATABASE_PORT}/_api/database"
# Do not output to /dev/null we need the output
code=$(curl -s -w "%{http_code}" --user "$basic_auth" "$url")

if [[ "$code" != "200" ]]; then
echo "Error detected in attempting to connect to database at $url"
Expand Down

0 comments on commit 1bd3aba

Please sign in to comment.