1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/nodebb/arm/docker-entrypoint.sh

23 lines
452 B
Bash
Raw Normal View History

2016-01-16 01:19:42 +02:00
#!/bin/bash
set -e
export NODE_ENV=production
export silent=false
export daemon=false
if [[ "$*" == npm*start* ]]; then
if [ ! -e "$BB_CONTENT/config.json" ]; then
2016-01-16 06:07:47 +02:00
if [ -e "$BB_SOURCE/config.json" ]; then
cp "$BB_SOURCE/config.json" "$BB_CONTENT/config.json"
fi
2016-01-16 01:19:42 +02:00
fi
2016-01-16 06:07:47 +02:00
if [ -e "$BB_CONTENT/config.json" ]; then
ln -sf "$BB_CONTENT/config.json" "$BB_SOURCE/config.json"
fi
2016-01-16 01:19:42 +02:00
exec "$@"
fi
exec "$@"