@@ -412,6 +412,15 @@ else
412412 # shellcheck source=/dev/null
413413 source " ${configdirserver} /common.cfg"
414414 fi
415+ # Load the secrets-common.cfg config. If missing download it.
416+ if [ ! -f " ${configdirserver} /secrets-common.cfg" ]; then
417+ fn_fetch_config " lgsm/config-default/config-lgsm" " secrets-common-template.cfg" " ${configdirserver} " " secrets-common.cfg" " ${chmodx} " " nochmodx" " norun" " noforcedl" " nomd5"
418+ # shellcheck source=/dev/null
419+ source " ${configdirserver} /secrets-common.cfg"
420+ else
421+ # shellcheck source=/dev/null
422+ source " ${configdirserver} /secrets-common.cfg"
423+ fi
415424 # Load the instance.cfg config. If missing download it.
416425 if [ ! -f " ${configdirserver} /${selfname} .cfg" ]; then
417426 fn_fetch_config " lgsm/config-default/config-lgsm" " instance-template.cfg" " ${configdirserver} " " ${selfname} .cfg" " nochmodx" " norun" " noforcedl" " nomd5"
@@ -421,6 +430,15 @@ else
421430 # shellcheck source=/dev/null
422431 source " ${configdirserver} /${selfname} .cfg"
423432 fi
433+ # Load the secrets-instance.cfg config. If missing download it.
434+ if [ ! -f " ${configdirserver} /secrets-${selfname} .cfg" ]; then
435+ fn_fetch_config " lgsm/config-default/config-lgsm" " secrets-instance-template.cfg" " ${configdirserver} " " secrets-${selfname} .cfg" " nochmodx" " norun" " noforcedl" " nomd5"
436+ # shellcheck source=/dev/null
437+ source " ${configdirserver} /secrets-${selfname} .cfg"
438+ else
439+ # shellcheck source=/dev/null
440+ source " ${configdirserver} /secrets-${selfname} .cfg"
441+ fi
424442
425443 # Load the linuxgsm.sh in to tmpdir. If missing download it.
426444 if [ ! -f " ${tmpdir} /linuxgsm.sh" ]; then
0 commit comments