1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 13:58:42 +00:00
dockerfiles/nodebb/docker-entrypoint.sh

23 lines
457 B
Bash
Raw Normal View History

2016-01-15 23:19:42 +00:00
#!/bin/bash
set -e
export NODE_ENV=production
export silent=false
export daemon=false
2018-08-25 03:34:33 +00:00
if [[ "$*" == ./nodebb*start* ]]; then
2016-01-15 23:19:42 +00:00
if [ ! -e "$BB_CONTENT/config.json" ]; then
2016-01-16 04:07:47 +00:00
if [ -e "$BB_SOURCE/config.json" ]; then
cp "$BB_SOURCE/config.json" "$BB_CONTENT/config.json"
fi
2016-01-15 23:19:42 +00:00
fi
2016-01-16 04:07:47 +00:00
if [ -e "$BB_CONTENT/config.json" ]; then
ln -sf "$BB_CONTENT/config.json" "$BB_SOURCE/config.json"
fi
2016-01-15 23:19:42 +00:00
exec "$@"
fi
exec "$@"