Archived
3
0
This repository has been archived on 2025-09-02. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zmp24-docs/image/run.sh
Ondřej Mekina 5513042b1b
Some checks failed
Check indentation / build (push) Has been cancelled
Continuous testing / build (push) Has been cancelled
extract config to external files
2025-03-12 23:08:40 +01:00

16 lines
231 B
Bash
Executable File

#!/bin/sh
if [ ! -f /data/config.toml ]
then
cp /default/config.toml /data/config.toml
fi
_term() {
kill -TERM "$server_pid" 2>/dev/null
}
trap _term SIGTERM
/usr/bin/zmp24 /data/config.toml &
server_pid=$!
wait "$server_pid"