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 152c74f commit 245e3deCopy full SHA for 245e3de
pritunl-nginx-proxy/entrypoint.sh
@@ -24,10 +24,10 @@ else
24
25
26
# Import the profile
27
- pritunl-client add "/conf/pritunl-profiles/$PRITUNL_PROFILE" > /dev/null
+ ADD_OUTPUT=$(pritunl-client add "/conf/pritunl-profiles/$PRITUNL_PROFILE")
28
29
# Get the profile ID
30
- PROFILE_ID=$(pritunl-client list | grep -B 1 "$PRITUNL_PROFILE" | head -n 1 | awk '{print $1}')
+ PROFILE_ID=$(echo "$ADD_OUTPUT" | grep '^Profile ID:' | awk '{print $3}')
31
32
if [ -z "$PROFILE_ID" ]; then
33
log "Error: Failed to get profile ID for $PRITUNL_PROFILE"
0 commit comments