mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-24 16:12:59 +08:00
Create netclient-install.slim.sh
This commit is contained in:
parent
fb1e7e75b7
commit
0f03955819
1 changed files with 14 additions and 0 deletions
14
scripts/netclient-install.slim.sh
Normal file
14
scripts/netclient-install.slim.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
Loading…
Reference in a new issue