We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93730e4 commit 4fb4661Copy full SHA for 4fb4661
pritunl-nginx-proxy/entrypoint.sh
@@ -24,10 +24,10 @@ else
24
25
26
# Import the profile
27
- ADD_OUTPUT=$(pritunl-client add "/conf/pritunl-profiles/$PRITUNL_PROFILE")
+ pritunl-client add "/conf/pritunl-profiles/$PRITUNL_PROFILE"
28
29
# Get the profile ID
30
- PROFILE_ID=$(echo "$ADD_OUTPUT" | grep '^Profile ID:' | awk '{print $3}')
+ PROFILE_ID=$(pritunl-client list | awk 'NR==1{print $1}')
31
32
if [ -z "$PROFILE_ID" ]; then
33
log "Error: Failed to get profile ID for $PRITUNL_PROFILE | $PROFILE_ID"
0 commit comments