Skip to content

Commit

Permalink
Merge pull request matrix-org#5839 from tcitworld/fix-purge-remote-me…
Browse files Browse the repository at this point in the history
…dia-script

Fix curl command typo in purge_remote_media.sh
  • Loading branch information
erikjohnston authored Aug 12, 2019
2 parents fb86217 + 3de6cc2 commit 2bec3a4
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 2bec3a4

Please sign in to comment.