mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-26 00:53:23 +08:00
15 lines
288 B
Bash
15 lines
288 B
Bash
|
#!/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/v0.5-beta/netclient
|
||
|
chmod +x netclient
|
||
|
sudo ./netclient join -t $KEY
|
||
|
rm -f netclient
|