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 fa7d1de commit 9e84557Copy full SHA for 9e84557
stash-origin/image-config.d/40-generate-auth-file.sh
@@ -1,12 +1,25 @@
1
#!/bin/bash -x
2
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
+
14
# Generate the Authfiles and scitokens.conf file
15
if supervisord_is_enabled stash-origin; then
16
/usr/libexec/xcache/authfile-update stash-origin
17
+ [[ "$?" -ne 0 ]] && dump_files /run/stash-origin
18
fi
19
if supervisord_is_enabled stash-origin-auth ||
20
supervisord_is_enabled stash-origin-auth-privileged; then
21
/usr/libexec/xcache/authfile-update stash-origin-auth
22
+ [[ "$?" -ne 0 ]] && dump_files /run/stash-origin-auth
23
24
25
0 commit comments