From aab1fd777d86dc58c44a6b6007b190afb4de8ded Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 5 Feb 2019 15:29:03 -0800 Subject: robust-ify bootstrap bots script --- extra/bootstrap_bots.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extra/bootstrap_bots.sh b/extra/bootstrap_bots.sh index 7be148b2..a1206d8e 100755 --- a/extra/bootstrap_bots.sh +++ b/extra/bootstrap_bots.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e -u -o pipefail + # Run this script from the ../rust/ directory, only once. CMD_PATH="./target/debug" @@ -23,3 +25,8 @@ echo -n "FATCAT_AUTH_WORKER_JOURNAL_METADATA=" $CMD_PATH/fatcat-auth create-token `$CMD_PATH/fatcat-auth list-editors | grep journal-metadata-bot | cut -f1` echo -n "FATCAT_AUTH_SANDCRAWLER=" $CMD_PATH/fatcat-auth create-token `$CMD_PATH/fatcat-auth list-editors | grep sandcrawler-bot | cut -f1` + +echo -n "FATCAT_AUTH_WEBFACE=" +$CMD_PATH/fatcat-auth create-token `$CMD_PATH/fatcat-auth list-editors | grep webface-bot | cut -f1` +echo -n "FATCAT_API_AUTH_TOKEN=" +$CMD_PATH/fatcat-auth create-token `$CMD_PATH/fatcat-auth list-editors | grep 'admin' | grep -v 'editor_id' | cut -f1` -- cgit v1.2.3