nginx-proxy-manager-zh/docker/rootfs/etc/s6-overlay/s6-rc.d/backend/run
2023-02-24 18:31:46 +10:00

19 lines
389 B
Plaintext
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/command/with-contenv bash
set -e
echo " Starting backend ..."
if [ "$DEVELOPMENT" == "true" ]; then
HOME=/tmp/npmuserhome
GOPATH="$HOME/go"
mkdir -p "$GOPATH"
chown -R npmuser:npmuser "$GOPATH"
export HOME GOPATH
rm -rf /app/backend/.task
cd /app/backend || exit 1
exec s6-setuidgid npmuser task -w
else
cd /app/bin || exit 1
exec s6-setuidgid npmuser /app/bin/server
fi