netclient-install.sh 285 B

1234567891011121314
  1. #!/bin/sh
  2. set -e
  3. if [[ $EUID -ne 0 ]]; then
  4. echo "This script must be run as root"
  5. exit 1
  6. fi
  7. [ -z "$KEY" ] && KEY=nokey;
  8. wget -O netclient https://github.com/gravitl/netmaker/releases/download/v0.7.2/netclient
  9. chmod +x netclient
  10. sudo ./netclient join -t $KEY
  11. rm -f netclient