crafty-4/docker_launcher.sh
Zedifus 7be5cfa449 Fix config check in wrapper
.gitkeep was making the wrapper think config was present on fresh boot..
Whoops!
2022-03-02 13:28:36 +00:00

12 lines
340 B
Bash

#!/bin/sh
# Check if config exists from existing installation (venv or previous docker launch)
if [ ! "$(ls -A --ignore=.gitkeep ./app/config)" ]; then
mkdir ./app/config/
cp -r ./app/config_original/* ./app/config/
fi
# Activate our prepared venv and launch crafty with provided args
. .venv/bin/activate
exec python3 main.py $@