27 lines
569 B
Bash
Executable file
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...'
|
|
|