Skip to content

Commit

Permalink
Fix curl command typo in purge_remote_media.sh
Browse files Browse the repository at this point in the history
Was verbose option instead of -X, command didn't work

Signed-off-by: Thomas Citharel <[email protected]>
  • Loading branch information
tcitworld committed Aug 9, 2019
1 parent d1b5b05 commit a7f0161
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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"

0 comments on commit a7f0161

Please sign in to comment.