Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
luckspt authored Jun 19, 2023
1 parent d39e60e commit 71e3f37
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions web-servers/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
# Copy .env files
if [ ! -f .env.example ]
if [ ! -f .env ]
then
cp .env.example .env
fi
# api.env, for now, already has the correct values predefined
if [ ! -f .env.example ]

if [ ! -f api.env ]
then
cp api.env.example api.env
fi

if [ ! -f web.env ]
then
cp web.env.example web.env
fi

# Get ens4 IP
IP=$(ip addr show ens4 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)

Expand Down

0 comments on commit 71e3f37

Please sign in to comment.