Browse Source

Remove unnecessary exit

pull/1/head
Julien Escario 5 years ago
parent
commit
5c267735f2
  1. 2
      wireguard/deploy-wg-clients.sh

2
wireguard/deploy-wg-clients.sh

@ -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
fi
exit 1;
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

Loading…
Cancel
Save