Files
netmaker/scripts/netclient-install.sh
2021-10-19 15:53:01 -04:00

15 lines
284 B
Bash
Executable File

#!/bin/sh
set -e
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
[ -z "$KEY" ] && KEY=nokey;
wget -O netclient https://github.com/gravitl/netmaker/releases/download/latest/netclient
chmod +x netclient
sudo ./netclient join -t $KEY
rm -f netclient