netmaker/scripts/netclient-install.slim.sh

15 lines
288 B
Bash
Raw Normal View History

2021-06-10 00:43:15 +08:00
#!/bin/bash
2021-06-09 05:06:28 +08:00
set -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
[ -z "$KEY" ] && KEY=nokey;
2021-07-19 08:04:39 +08:00
wget -O netclient https://github.com/gravitl/netmaker/releases/download/v0.5.11/netclient
2021-06-09 05:06:28 +08:00
chmod +x netclient
sudo ./netclient join -t $KEY
rm -f netclient