From 5c267735f228faaf10a9d760db21c5de11dc86f6 Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Tue, 21 Apr 2020 17:06:31 +0200 Subject: [PATCH] Remove unnecessary exit --- wireguard/deploy-wg-clients.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/wireguard/deploy-wg-clients.sh b/wireguard/deploy-wg-clients.sh index 8a9d1ed..7a69997 100755 --- a/wireguard/deploy-wg-clients.sh +++ b/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