github.com/looshlee/cilium@v1.6.12/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