|
@ -453,7 +453,7 @@ else |
|
|
# shellcheck source=/dev/null |
|
|
# shellcheck source=/dev/null |
|
|
source "${servercfgfullpath}" |
|
|
source "${servercfgfullpath}" |
|
|
fi |
|
|
fi |
|
|
|
|
|
# reload startparameters. |
|
|
if grep -qE "^[[:blank:]]*startparameters=" "${configdirserver}/secrets-${selfname}.cfg"; then |
|
|
if grep -qE "^[[:blank:]]*startparameters=" "${configdirserver}/secrets-${selfname}.cfg"; then |
|
|
eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/secrets-${selfname}.cfg")" |
|
|
eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/secrets-${selfname}.cfg")" |
|
|
elif grep -qE "^[[:blank:]]*startparameters=" "${configdirserver}/${selfname}.cfg"; then |
|
|
elif grep -qE "^[[:blank:]]*startparameters=" "${configdirserver}/${selfname}.cfg"; then |
|
@ -466,6 +466,18 @@ else |
|
|
eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/_default.cfg")" |
|
|
eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/_default.cfg")" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# reload preexecutable. |
|
|
|
|
|
if grep -qE "^[[:blank:]]*preexecutable=" "${configdirserver}/secrets-${selfname}.cfg"; then |
|
|
|
|
|
eval preexecutable="$(sed -nr 's/^ *preexecutable=(.*)$/\1/p' "${configdirserver}/secrets-${selfname}.cfg")" |
|
|
|
|
|
elif grep -qE "^[[:blank:]]*preexecutable=" "${configdirserver}/${selfname}.cfg"; then |
|
|
|
|
|
eval preexecutable="$(sed -nr 's/^ *preexecutable=(.*)$/\1/p' "${configdirserver}/${selfname}.cfg")" |
|
|
|
|
|
elif grep -qE "^[[:blank:]]*preexecutable=" "${configdirserver}/secrets-common.cfg"; then |
|
|
|
|
|
eval preexecutable="$(sed -nr 's/^ *preexecutable=(.*)$/\1/p' "${configdirserver}/secrets-common.cfg")" |
|
|
|
|
|
elif grep -qE "^[[:blank:]]*preexecutable=" "${configdirserver}/common.cfg"; then |
|
|
|
|
|
eval preexecutable="$(sed -nr 's/^ *preexecutable=(.*)$/\1/p' "${configdirserver}/common.cfg")" |
|
|
|
|
|
elif grep -qE "^[[:blank:]]*preexecutable=" "${configdirserver}/_default.cfg"; then |
|
|
|
|
|
eval preexecutable="$(sed -nr 's/^ *preexecutable=(.*)$/\1/p' "${configdirserver}/_default.cfg")" |
|
|
|
|
|
|
|
|
# For legacy configs that still use parms= 15.03.21 |
|
|
# For legacy configs that still use parms= 15.03.21 |
|
|
if grep -qE "^[[:blank:]]*parms=" "${configdirserver}/secrets-${selfname}.cfg"; then |
|
|
if grep -qE "^[[:blank:]]*parms=" "${configdirserver}/secrets-${selfname}.cfg"; then |
|
|
eval parms="$(sed -nr 's/^ *parms=(.*)$/\1/p' "${configdirserver}/secrets-${selfname}.cfg")" |
|
|
eval parms="$(sed -nr 's/^ *parms=(.*)$/\1/p' "${configdirserver}/secrets-${selfname}.cfg")" |
|
|