github.com/fafucoder/cilium@v1.6.11/examples/mesos/allfiles/generate_client_file.sh (about) 1 #!/bin/bash 2 3 if [ "$1" == "goodclient" ] || [ "$1" == "badclient" ] 4 then 5 export IP=`cilium endpoint list | grep web-server | awk '{print $7}'` 6 sed "s/__WEBSERVER_IP__/$IP/g; s/__CLIENTTYPE__/$1/g" ./client-template.json > $1.json 7 else 8 echo "Invalid client name. Please enter goodclient or badclient." 9 fi