github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/test/nuke_kbweb.sh (about) 1 #!/usr/bin/env bash 2 3 KBWEB_PORT="3000" 4 KBWEB_CONTAINER_NAME="kbweb$KBWEB_PORT" 5 6 # if it's paused, we have to unpause it first 7 paused=`docker inspect --format='{{.State.Paused}}' $KBWEB_CONTAINER_NAME 2> /dev/null` 8 if [ $? -eq 0 ]; then 9 if [ "$paused" = "true" ]; then 10 set -e 11 docker unpause $KBWEB_CONTAINER_NAME 12 set +e 13 fi 14 fi 15 16 17 # if the Keybase webserver is running in a container, pause it 18 running=`docker inspect $KBWEB_CONTAINER_NAME 2> /dev/null` 19 if [ $? -eq 0 ]; then 20 set -e 21 docker rm -f $KBWEB_CONTAINER_NAME 22 fi