]> Sergey Matveev's repositories - public-inbox.git/commitdiff
examples/grok-pull.post_update_hook: fetch mirror description
authorEric Wong <e@yhbt.net>
Mon, 6 Apr 2020 09:56:19 +0000 (09:56 +0000)
committerEric Wong <e@yhbt.net>
Mon, 6 Apr 2020 18:49:47 +0000 (18:49 +0000)
The $INBOX_URL/description endpoint is available since v1.3.0,
so use it in mirrors.

examples/grok-pull.post_update_hook.sh

index d003448eb81b0f5328f31c178751584839dfe74d..e04eb2c5ec35d4318deaf41ea9f9d1cacd5be240 100755 (executable)
@@ -93,6 +93,7 @@ case $cfg_dir in
                # only one newsgroup per inbox
                break
        done
+       curl -sSfv "remote_inbox_url"/description >"$inbox_dir"/description
        echo "I: $inbox_name at $inbox_dir ($addresses) $local_url"
        ;;
 esac