Skip to content

Commit

Permalink
Use PDS_ENV_FILE environment variable if set (#48)
Browse files Browse the repository at this point in the history
* Updating account.sh to allow PDS_ENV_FILE to be set as env var.

* Update create-invite-code.sh to allow PDS_ENV_FILE to be set as env var.

* Update request-crawl.sh to allow PDS_ENV_FILE to be set as env var.
  • Loading branch information
ngerakines authored Feb 23, 2024
1 parent 2402759 commit 24d6554
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pdsadmin/account.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -o errexit
set -o nounset
set -o pipefail

PDS_ENV_FILE="/pds/pds.env"
PDS_ENV_FILE=${PDS_ENV_FILE:-"/pds/pds.env"}
source "${PDS_ENV_FILE}"

# curl a URL and fail if the request fails.
Expand Down
3 changes: 1 addition & 2 deletions pdsadmin/create-invite-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ set -o errexit
set -o nounset
set -o pipefail

PDS_ENV_FILE="/pds/pds.env"

PDS_ENV_FILE=${PDS_ENV_FILE:-"/pds/pds.env"}
source "${PDS_ENV_FILE}"

curl \
Expand Down
2 changes: 1 addition & 1 deletion pdsadmin/request-crawl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -o errexit
set -o nounset
set -o pipefail

PDS_ENV_FILE="/pds/pds.env"
PDS_ENV_FILE=${PDS_ENV_FILE:-"/pds/pds.env"}
source "${PDS_ENV_FILE}"

RELAY_HOSTS="${1:-}"
Expand Down

0 comments on commit 24d6554

Please sign in to comment.