Update on tuto3 subject
This commit is contained in:
parent
c20ed6630b
commit
5d8bcd55ce
3 changed files with 7 additions and 2 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-maatma` 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