tuto3: done
This commit is contained in:
parent
6b81aebc71
commit
2baa88a7aa
6 changed files with 148 additions and 45 deletions
|
|
@ -12,7 +12,7 @@ cmdline() {
|
|||
[ -f "/var/lib/adlin/wireguard/adlin.token" ] && WGTOKEN=$(cat /var/lib/adlin/wireguard/adlin.token)
|
||||
[ -z "${WGTOKEN}" ] && WGTOKEN=$(cmdline adlin.token)
|
||||
[ -z "${WGTOKEN}" ] && {
|
||||
echo "You didn't define your token to connect the network. Please run here `join-p0m` and then reboot."
|
||||
echo "You didn't define your token to connect the network. Please run here `join-maatma` and then reboot."
|
||||
exit 1
|
||||
}
|
||||
[ -f "/var/lib/adlin/wireguard/adlin.conf" ] && WGPRVKEY=$(sed 's/^.*PrivateKey *= *//p;d' /var/lib/adlin/wireguard/adlin.conf)
|
||||
|
|
|
|||
Reference in a new issue