Update entrypoint.sh

This commit is contained in:
Twig6943 2026-03-26 01:15:39 +03:00 committed by GitHub
parent e182a8d5e9
commit 43e7f6a32f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,6 @@ ensure_persist_file() {
ln -sfn "${persist_path}" "${runtime_path}"
}
if [ ! -d "$SERVER_DIR" ]; then
echo "[error] Server directory not found: $SERVER_DIR" >&2
exit 1
@ -58,9 +57,6 @@ if [ -e "Windows64/GameHDD" ] && [ ! -L "Windows64/GameHDD" ]; then
fi
ln -sfn "${PERSIST_DIR}/GameHDD" "Windows64/GameHDD"
# do umu-run stuff
if [ ! -d "${WINEPREFIX}" ] || [ -z "$(ls -A "${WINEPREFIX}" 2>/dev/null)" ]; then
mkdir -p "${WINEPREFIX}"
fi
@ -71,4 +67,4 @@ args=(
)
echo "[info] Starting ${SERVER_EXE} on ${SERVER_BIND_IP}:${SERVER_PORT}"
exec "${WINE_CMD}" "${SERVER_EXE}" "${args[@]}"
exec "umu-run" "${SERVER_EXE}" "${args[@]}"