Update on tuto3 subject

This commit is contained in:
nemunaire 2021-03-23 12:56:47 +01:00
commit 5d8bcd55ce
3 changed files with 7 additions and 2 deletions

View file

@ -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)