taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

make-buildbot-linkchecker.sh (638B)


      1 #!/bin/bash
      2 
      3 # Bootstrap the Taler setup for the linkchecker-worker.
      4 
      5 set -eu
      6 
      7 if ! test "linkchecker-worker" = $(whoami); then
      8   echo Only run as the 'linkchecker-worker' user.
      9   exit 1
     10 fi
     11 
     12 cd
     13 
     14 export PATH=$HOME/.local/bin:$PATH
     15 
     16 pip install --user --break-system-packages buildbot-worker
     17 
     18 if ! test -d "$HOME/taler-deployment";
     19 then
     20     git clone git://git.taler.net/taler-deployment.git
     21 fi
     22 
     23 if [[ ! -d worker ]];
     24 then
     25     buildbot-worker create-worker --umask=0o22 ~/worker 127.0.0.1:19989 linkchecker-worker linkchecker-pass
     26     echo $HOSTNAME > worker/info/host
     27     echo "GNUnet.org admins <admin@gnunet.org>" > worker/info/admin
     28 fi