mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Update entrypoint.sh
This commit is contained in:
parent
e182a8d5e9
commit
43e7f6a32f
|
|
@ -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[@]}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue