Skip to content

Commit 4fb4661

Browse files
authored
fgdhujeurg
1 parent 93730e4 commit 4fb4661

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pritunl-nginx-proxy/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ else
2424

2525

2626
# Import the profile
27-
ADD_OUTPUT=$(pritunl-client add "/conf/pritunl-profiles/$PRITUNL_PROFILE")
27+
pritunl-client add "/conf/pritunl-profiles/$PRITUNL_PROFILE"
2828

2929
# Get the profile ID
30-
PROFILE_ID=$(echo "$ADD_OUTPUT" | grep '^Profile ID:' | awk '{print $3}')
30+
PROFILE_ID=$(pritunl-client list | awk 'NR==1{print $1}')
3131

3232
if [ -z "$PROFILE_ID" ]; then
3333
log "Error: Failed to get profile ID for $PRITUNL_PROFILE | $PROFILE_ID"

0 commit comments

Comments
 (0)