github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/go/apps/mixnet/scripts/run_directory.sh (about)

     1  #!/bin/bash
     2  ./initmixnet.sh
     3  source ./define.sh
     4  
     5  # These should be run as root.
     6  $GOPATH/bin/tao host init -tao_domain $DOMAIN -hosting process -root -pass $PASSWORD
     7  sudo -E $GOPATH/bin/tao host start -tao_domain $DOMAIN -host linux_tao_host -pass $PASSWORD &
     8  sleep 2
     9  
    10  dir_addr="127.0.0.1:8000"
    11  echo "Starting directory..."
    12  
    13  $GOPATH/bin/tao run -tao_domain $DOMAIN $DOMAINROOT/mixnet_directory --addr $dir_addr --config $DOMAIN/tao.config