github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/test/pause_kbweb.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  KBWEB_PORT="3000"
     4  KBWEB_CONTAINER_NAME="kbweb$KBWEB_PORT"
     5  
     6  # if the Keybase webserver is running in a container, pause it
     7  running=`docker inspect --format='{{.State.Running}}{{.State.Paused}}' $KBWEB_CONTAINER_NAME 2> /dev/null`
     8  if [ "$running" = "truefalse" ]; then
     9      set -e
    10      docker pause $KBWEB_CONTAINER_NAME
    11  fi