disseminate/scripts/docker_run.sh
hexlocation's laptop (asiago) 6e82e1fbe8 WOHOO actual dev scripts now
2024-03-29 15:12:14 -04:00

27 lines
569 B
Bash
Executable file

# I'm so bad at bash scripting
cat << EOF
____ ______________ __
/ __ \/ _/ ___/ ___// /
/ / / // / \__ \\__ \/ /
/ /_/ // / ___/ /__/ /_/
/_____/___//____/____(_)
EOF
if [ ! -d data ]; then
echo '-------------'
echo 'Data folder not found. Did you set up a volume?'
echo '-------------'
exit 1
fi
if [ -z "$(find data -mindepth 1 -maxdepth 1)" ]; then
echo '-------------'
echo 'Data directory is empty, copying template.'
echo '-------------'
cp -r data.template/* data/
fi
echo 'Starting...'
node src/index.js
echo 'Exiting...'