mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-22 14:48:26 +00:00
Allow pre-start script to be non-executable script
This commit is contained in:
parent
abd6c2f02a
commit
4b77d03016
@ -1237,7 +1237,11 @@ doStart() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "${prestart}" && -f "${prestart}" ]]; then
|
if [[ -n "${prestart}" && -f "${prestart}" ]]; then
|
||||||
"${prestart}" "$@"
|
if [ -x "${prestart}" ]; then
|
||||||
|
"${prestart}" "$@"
|
||||||
|
else
|
||||||
|
/bin/bash "${prestart}" "$@"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$arkAutoUpdateOnStart" == "true" ]; then
|
if [ "$arkAutoUpdateOnStart" == "true" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user