summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-08-12 14:51:27 +0100
committerGitHub <noreply@github.com>2019-08-12 14:51:27 +0100
commit2bec3a49533e58d07e94e6076f4635d942f828c7 (patch)
tree7c36f73d9f4e3b27394c2acec19984f4e6a76929
parentMerge pull request #5788 from matrix-org/rav/metaredactions (diff)
parentChangelogs should end in '.' or '!' (diff)
downloadsynapse-2bec3a49533e58d07e94e6076f4635d942f828c7.tar.xz
Merge pull request #5839 from tcitworld/fix-purge-remote-media-script
Fix curl command typo in purge_remote_media.sh
-rw-r--r--changelog.d/5839.bugfix1
-rw-r--r--contrib/purge_api/purge_remote_media.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/5839.bugfix b/changelog.d/5839.bugfix
new file mode 100644
index 0000000000..5775bfa653
--- /dev/null
+++ b/changelog.d/5839.bugfix
@@ -0,0 +1 @@
+The purge_remote_media.sh script was fixed.
diff --git a/contrib/purge_api/purge_remote_media.sh b/contrib/purge_api/purge_remote_media.sh
index 99c07c663d..77220d3bd5 100644
--- a/contrib/purge_api/purge_remote_media.sh
+++ b/contrib/purge_api/purge_remote_media.sh
@@ -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"