Skip to content

Commit

Permalink
Fix sitemap generate and upload script (#2310)
Browse files Browse the repository at this point in the history
The CWD is not in the same directory as the script. Use the script from
the global PATH.
  • Loading branch information
another-rex authored Jun 13, 2024
1 parent 597e1fa commit 6121270
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/cron/generate_sitemap/generate_and_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

set -e

SCRIPT_PATH=$(dirname "$(readlink -f "$0")")

SITEMAP_OUTPUT="sitemap_output/"
OUTPUT_BUCKET="${OUTPUT_GCS_BUCKET:=test-osv-dev-sitemap}"
BASE_URL_PATH="${BASE_URL:=https://test.osv.dev}"

echo "Begin sitemap generation for $BASE_URL_PATH"

./generate_sitemap.py --base_url $BASE_URL_PATH
"$SCRIPT_PATH/generate_sitemap.py" --base_url $BASE_URL_PATH

echo "Begin Syncing with cloud to $OUTPUT_BUCKET"

Expand Down

0 comments on commit 6121270

Please sign in to comment.