From 2a0ed05de9514e34ba4a690ecded2461ef87ad8b Mon Sep 17 00:00:00 2001 From: Wen Guan Date: Tue, 26 Jul 2022 10:57:19 +0200 Subject: [PATCH] [ATLASPANDA-629] idds to read auth.cfg from mounted configmap --- start-daemon.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/start-daemon.sh b/start-daemon.sh index c37769b3..a899e8b7 100755 --- a/start-daemon.sh +++ b/start-daemon.sh @@ -40,6 +40,15 @@ else --use-env \ --prefix IDDS_CFG_AUTH \ -d /opt/idds/config/idds/auth.cfg + + if [ -f /opt/idds/configmap/auth.cfg ]; then + python3 /opt/idds/tools/env/merge_idds_configs.py \ + -s /opt/idds/configmap/auth.cfg $IDDS_OVERRIDE_AUTH_CONFIGS \ + --use-env \ + --prefix IDDS_CFG_AUTH \ + -d /opt/idds/config/idds/auth.cfg + fi + python3 /opt/idds/tools/env/merge_configmap.py \ -s /opt/idds/configmap/idds_configmap.json \ -d /opt/idds/config/idds/auth.cfg