Skip to content

Commit

Permalink
Remove check for .dockerenv - it is not needed
Browse files Browse the repository at this point in the history
- Attempted fix of #272
  • Loading branch information
DonMartin76 committed Jun 23, 2020
1 parent cc6a9b5 commit 242909f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/bin/docker-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ runtimeEnv=$(uname)

echo "Running as $(whoami)."

if [ "$runtimeEnv" != "Linux" ] || [ ! -f /.dockerenv ]; then
if [ "$runtimeEnv" != "Linux" ]; then
echo "Do not use this script in non-dockerized environments."
echo "Detected non-Linux runtime $runtimeEnv, or /.dockerenv is not present."
echo "Detected non-Linux runtime $runtimeEnv."
echo "Use 'node bin/api' or 'npm start'.'"
exit 1
fi
Expand Down

0 comments on commit 242909f

Please sign in to comment.