18 lines
422 B
Bash
Executable File
18 lines
422 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
server_root=${MT40250_ROOT:-/usr/metin2}
|
|
runtime="$server_root/server"
|
|
if [ "$(uname -s)" != "FreeBSD" ]; then
|
|
echo "prepare_runtime.sh: runtime binaries are FreeBSD-only" >&2
|
|
exit 2
|
|
fi
|
|
if [ ! -x "$runtime/install.sh" ]; then
|
|
echo "prepare_runtime.sh: missing $runtime/install.sh" >&2
|
|
exit 2
|
|
fi
|
|
|
|
cd "$runtime"
|
|
sh ./install.sh
|
|
echo "40250 runtime links and log/core directories ready under $runtime"
|