aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-02-05 15:29:03 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-02-05 15:29:03 -0800
commitaab1fd777d86dc58c44a6b6007b190afb4de8ded (patch)
tree1a92e8028a53741fed070243982eadf0e3d60e0e
parent034da6e42bc6cc3dae3bc94b32df977aa4eac829 (diff)
downloadfatcat-aab1fd777d86dc58c44a6b6007b190afb4de8ded.tar.gz
fatcat-aab1fd777d86dc58c44a6b6007b190afb4de8ded.zip
robust-ify bootstrap bots script
-rwxr-xr-xextra/bootstrap_bots.sh7
1 files changed, 7 insertions, 0 deletions
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`