summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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`