fix(docker): start script (#513)

* Denote to the system environment that it is running in docker

* Fix start script to use sh instead of bash and check if in docker
This commit is contained in:
Daleth Darko
2024-01-10 23:57:43 -05:00
committed by GitHub
parent c4d96e8ee2
commit 978eb92781
2 changed files with 9 additions and 5 deletions

View File

@@ -1,7 +1,10 @@
#!/usr/bin/env bash
source="${BASH_SOURCE}"
base_dir=$(dirname $(dirname "$source"))
#!/usr/bin/env sh
if [ "$DOCKER" = "true" ]; then
base_dir="/app"
else
source="${BASH_SOURCE}"
base_dir=$(dirname $(dirname "$source"))
fi
echo "Checking environment..."
script=scripts/preinstall