We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1a0e749 + 9e84557 commit 1cf8675Copy full SHA for 1cf8675
1 file changed
stash-origin/image-config.d/40-generate-auth-file.sh
@@ -1,11 +1,25 @@
1
-#!/bin/bash
+#!/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
-if supervisord_is_enabled stash-origin-auth; then
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