mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-12 11:14:57 +02:00
23 lines
457 B
Bash
Executable File
23 lines
457 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
export NODE_ENV=production
|
|
export silent=false
|
|
export daemon=false
|
|
|
|
if [[ "$*" == ./nodebb*start* ]]; then
|
|
if [ ! -e "$BB_CONTENT/config.json" ]; then
|
|
if [ -e "$BB_SOURCE/config.json" ]; then
|
|
cp "$BB_SOURCE/config.json" "$BB_CONTENT/config.json"
|
|
fi
|
|
fi
|
|
|
|
if [ -e "$BB_CONTENT/config.json" ]; then
|
|
ln -sf "$BB_CONTENT/config.json" "$BB_SOURCE/config.json"
|
|
fi
|
|
|
|
exec "$@"
|
|
fi
|
|
|
|
exec "$@"
|