Skip to content

Commit 228ff5d

Browse files
committed
add find command to find pgpass for splunk 10.0 in a different location - fix typo
1 parent 0e4dee2 commit 228ff5d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/splunkconf-backup-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ jobs:
317317
PGPASS_FILE="${SPLUNK_HOME}/var/packages/data/postgres/.pgpass"
318318
echo "Found .pgpass in packages/data/postgres directory"
319319
else
320-
docker exec --user ${SPLUNK_USER} splunk find /opt/splunk -name .pgpass 2>/dev/null || echo '❌ Error : No .pgpass found via find command '" || true
320+
docker exec --user ${SPLUNK_USER} splunk bash -c \
321+
"find /opt/splunk -name .pgpass 2>/dev/null || echo '❌ Error : No .pgpass found via find command '" || true
321322
echo "❌ ERROR No .pgpass file found"
322323
exit 1
323324
fi

0 commit comments

Comments
 (0)