Christian
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
13 additions and
1 deletions
-
linuxgsm.sh
|
|
@ -453,7 +453,7 @@ else |
|
|
|
# shellcheck source=/dev/null |
|
|
|
source "${servercfgfullpath}" |
|
|
|
fi |
|
|
|
|
|
|
|
# reload startparameters. |
|
|
|
if grep -qE "^[[:blank:]]*startparameters=" "${configdirserver}/secrets-${selfname}.cfg"; then |
|
|
|
eval startparameters="$(sed -nr 's/^ *startparameters=(.*)$/\1/p' "${configdirserver}/secrets-${selfname}.cfg")" |
|
|
|
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")" |
|
|
|
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 |
|
|
|
if grep -qE "^[[:blank:]]*parms=" "${configdirserver}/secrets-${selfname}.cfg"; then |
|
|
|
eval parms="$(sed -nr 's/^ *parms=(.*)$/\1/p' "${configdirserver}/secrets-${selfname}.cfg")" |
|
|
|