19 lines
375 B
Bash
Executable File
19 lines
375 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. /opt/bitnami/base/functions
|
|
. /opt/bitnami/base/helpers
|
|
|
|
USER=parse
|
|
DAEMON=parse-server
|
|
EXEC=$(which $DAEMON)
|
|
START_COMMAND="${EXEC} /opt/bitnami/parse/config.json"
|
|
|
|
cd /opt/bitnami/parse || exit 1
|
|
|
|
# If container is started as `root` user
|
|
if [ $EUID -eq 0 ]; then
|
|
exec gosu "${USER}" bash -c "${START_COMMAND}"
|
|
else
|
|
exec bash -c "${START_COMMAND}"
|
|
fi
|