From 2eb763ee1a810d1477455ee7914c84a6baaf8ebe Mon Sep 17 00:00:00 2001 From: Pierre Choffet Date: Tue, 24 Mar 2020 14:09:21 -0400 Subject: [PATCH] Add 1s wait after successful upload to prevent flooding server --- mediawiki_post.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mediawiki_post.sh b/mediawiki_post.sh index 0e21026..95c8d56 100755 --- a/mediawiki_post.sh +++ b/mediawiki_post.sh @@ -19,8 +19,7 @@ set -ex set -o pipefail -#ENDPOINT='https://commons.wikimedia.org/w/api.php' -ENDPOINT='http://mediawiki.banquise.tf/api.php' +ENDPOINT='https://commons.wikimedia.org/w/api.php' NAMESPACE='Data' USERNAME_PATH='login_username' @@ -119,6 +118,7 @@ do case "${RESULT}" in Success) echo "Everything went right. Continue…" + sleep 1 ;; *) echo "Unknown code: ${RESULT}. Exiting." -- 2.42.0