Skip to content

Commit

Permalink
fix(openvpn-addclient): avoid newline in profile url
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Lieven <pl@kamp.de>
  • Loading branch information
plieven committed Aug 23, 2019
1 parent 1b34587 commit 2dfa142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overlay/var/www/openvpn/bin/addprofile
Expand Up @@ -25,7 +25,7 @@ source $EASY_RSA/vars
OVPN_PATH=$KEY_DIR/$client_name.ovpn
[ -e $OVPN_PATH ] || fatal "$OVPN_PATH does not exist"

SERVER_ADDR=$(grep remote $OVPN_PATH | awk '{print $2}')
SERVER_ADDR=$(grep remote $OVPN_PATH | awk '{print $2;exit}')
PROFILE_HASH=$(sha1sum $OVPN_PATH | cut -d " " -f 1)
PROFILE_PATH=$PROFILES/$PROFILE_HASH

Expand Down

0 comments on commit 2dfa142

Please sign in to comment.