Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix curl command typo in purge_remote_media.sh #5839

Merged
merged 2 commits into from
Aug 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/5839.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The purge_remote_media.sh script was fixed.
2 changes: 1 addition & 1 deletion contrib/purge_api/purge_remote_media.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ TOKEN=$(sql "SELECT token FROM access_tokens WHERE user_id='$ADMIN' ORDER BY id
# finally start pruning media:
###############################################################################
set -x # for debugging the generated string
curl --header "Authorization: Bearer $TOKEN" -v POST "$API_URL/admin/purge_media_cache/?before_ts=$UNIX_TIMESTAMP"
curl --header "Authorization: Bearer $TOKEN" -X POST "$API_URL/admin/purge_media_cache/?before_ts=$UNIX_TIMESTAMP"