mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
12 lines
332 B
Bash
12 lines
332 B
Bash
#!/bin/sh
|
|
|
|
# Check if config exists from existing installation (venv or previous docker launch)
|
|
if [ ! "$(ls -A ./app/config)" ]; then
|
|
mkdir ./app/config/
|
|
cp -r ./app/config_original/* ./app/config/
|
|
fi
|
|
|
|
# Activate our prepared venv and launch crafty with provided args
|
|
. /commander-venv/bin/activate
|
|
exec python3 main.py $@
|