mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-26 01:07:52 +00:00
14 lines
257 B
Bash
Executable file
14 lines
257 B
Bash
Executable file
#!/bin/sh
|
|
|
|
PROCESS=${FLY_PROCESS_GROUP}
|
|
|
|
if [ "$PROCESS" = "server" ]; then
|
|
echo "Starting server process"
|
|
exec litefs mount -- $@
|
|
elif [ "$PROCESS" = "worker" ]; then
|
|
echo "Starting worker process"
|
|
exec $@
|
|
else
|
|
echo "Unknown process"
|
|
exit 1
|
|
fi
|