Skip to content

Commit 9e84557

Browse files
committed
Dump auth config contents (SOFTWARE-5614)
1 parent fa7d1de commit 9e84557

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

stash-origin/image-config.d/40-generate-auth-file.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
#!/bin/bash -x
22

3+
dump_files () {
4+
local containing_dir
5+
shopt -s nullglob
6+
for f in "$containing_dir"/*; do
7+
echo "======= $f ======="
8+
cat "$f"
9+
echo
10+
done
11+
shopt -u nullglob
12+
}
13+
314
# Generate the Authfiles and scitokens.conf file
415
if supervisord_is_enabled stash-origin; then
516
/usr/libexec/xcache/authfile-update stash-origin
17+
[[ "$?" -ne 0 ]] && dump_files /run/stash-origin
618
fi
719
if supervisord_is_enabled stash-origin-auth ||
820
supervisord_is_enabled stash-origin-auth-privileged; then
921
/usr/libexec/xcache/authfile-update stash-origin-auth
22+
[[ "$?" -ne 0 ]] && dump_files /run/stash-origin-auth
1023
fi
1124

1225

0 commit comments

Comments
 (0)