File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 453
453
# shellcheck source=/dev/null
454
454
source " ${servercfgfullpath} "
455
455
fi
456
-
456
+ # reload startparameters.
457
457
if grep -qE " ^[[:blank:]]*startparameters=" " ${configdirserver} /secrets-${selfname} .cfg" ; then
458
458
eval startparameters=" $( sed -nr ' s/^ *startparameters=(.*)$/\1/p' " ${configdirserver} /secrets-${selfname} .cfg" ) "
459
459
elif grep -qE " ^[[:blank:]]*startparameters=" " ${configdirserver} /${selfname} .cfg" ; then
@@ -466,6 +466,18 @@ else
466
466
eval startparameters=" $( sed -nr ' s/^ *startparameters=(.*)$/\1/p' " ${configdirserver} /_default.cfg" ) "
467
467
fi
468
468
469
+ # reload preexecutable.
470
+ if grep -qE " ^[[:blank:]]*preexecutable=" " ${configdirserver} /secrets-${selfname} .cfg" ; then
471
+ eval preexecutable=" $( sed -nr ' s/^ *preexecutable=(.*)$/\1/p' " ${configdirserver} /secrets-${selfname} .cfg" ) "
472
+ elif grep -qE " ^[[:blank:]]*preexecutable=" " ${configdirserver} /${selfname} .cfg" ; then
473
+ eval preexecutable=" $( sed -nr ' s/^ *preexecutable=(.*)$/\1/p' " ${configdirserver} /${selfname} .cfg" ) "
474
+ elif grep -qE " ^[[:blank:]]*preexecutable=" " ${configdirserver} /secrets-common.cfg" ; then
475
+ eval preexecutable=" $( sed -nr ' s/^ *preexecutable=(.*)$/\1/p' " ${configdirserver} /secrets-common.cfg" ) "
476
+ elif grep -qE " ^[[:blank:]]*preexecutable=" " ${configdirserver} /common.cfg" ; then
477
+ eval preexecutable=" $( sed -nr ' s/^ *preexecutable=(.*)$/\1/p' " ${configdirserver} /common.cfg" ) "
478
+ elif grep -qE " ^[[:blank:]]*preexecutable=" " ${configdirserver} /_default.cfg" ; then
479
+ eval preexecutable=" $( sed -nr ' s/^ *preexecutable=(.*)$/\1/p' " ${configdirserver} /_default.cfg" ) "
480
+
469
481
# For legacy configs that still use parms= 15.03.21
470
482
if grep -qE " ^[[:blank:]]*parms=" " ${configdirserver} /secrets-${selfname} .cfg" ; then
471
483
eval parms=" $( sed -nr ' s/^ *parms=(.*)$/\1/p' " ${configdirserver} /secrets-${selfname} .cfg" ) "
You can’t perform that action at this time.
0 commit comments