Merge pull request #5839 from tcitworld/fix-purge-remote-media-script

Fix curl command typo in purge_remote_media.sh
This commit is contained in:
Erik Johnston 2019-08-12 14:51:27 +01:00 committed by GitHub
commit 2bec3a4953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/5839.bugfix Normal file
View File

@ -0,0 +1 @@
The purge_remote_media.sh script was fixed.

View File

@ -51,4 +51,4 @@ TOKEN=$(sql "SELECT token FROM access_tokens WHERE user_id='$ADMIN' ORDER BY id
# finally start pruning media: # finally start pruning media:
############################################################################### ###############################################################################
set -x # for debugging the generated string 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"