tuto3: done

This commit is contained in:
nemunaire 2021-03-22 01:07:10 +01:00
commit 2baa88a7aa
6 changed files with 148 additions and 45 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-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)