|
@ -5,8 +5,6 @@ if ! [[ $IP =~ ^[0-9]{1,3}$ ]] ; then |
|
|
echo "error: Please set IP variable (with IP=1-254. See https://phpipam.altinea.fr" >&2; exit 1 |
|
|
echo "error: Please set IP variable (with IP=1-254. See https://phpipam.altinea.fr" >&2; exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
exit 1; |
|
|
|
|
|
|
|
|
|
|
|
mkdir -p /etc/wireguard/keys |
|
|
mkdir -p /etc/wireguard/keys |
|
|
umask 077 && wg genkey > /etc/wireguard/keys/private.key && wg pubkey < /etc/wireguard/keys/private.key > /etc/wireguard/keys/public.key && umask 0022 |
|
|
umask 077 && wg genkey > /etc/wireguard/keys/private.key && wg pubkey < /etc/wireguard/keys/private.key > /etc/wireguard/keys/public.key && umask 0022 |
|
|
|
|
|
|
|
|