Skip to content

Commit bc7eeb3

Browse files
committed
maintain absolute path of env file, symlink env file into docker dir
1 parent 0c22a91 commit bc7eeb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/Linux/install-docker-env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
ENV_FILE="${1:-.env.prod}"
2+
ENV_FILE=`realpath ${1:-.env.prod}`
33

44
if [ ! -f "$ENV_FILE" ]; then
55
echo "Environment file $ENV_FILE not found!"
@@ -68,7 +68,7 @@ git checkout main
6868
git pull origin main
6969

7070
echo "Moving the .env.prod file to the Docker directory..."
71-
mv $ENV_FILE docker/.env.prod
71+
ln -s $ENV_FILE $PWD/docker/.env.prod
7272

7373
echo "Pulling the latest Docker image..."
7474
docker pull ghcr.io/ecotrust/tekdb/web:latest

0 commit comments

Comments
 (0)