Allow pre-start script to be non-executable script

This commit is contained in:
Ben Peddell 2019-01-24 15:03:45 +10:00
parent abd6c2f02a
commit 4b77d03016

View File

@ -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