From acb9052269a4cb65793d70bdfaf869738ed91899 Mon Sep 17 00:00:00 2001 From: zeus Date: Tue, 5 Jan 2021 19:58:31 +0200 Subject: [PATCH] if dir --- install/usr/share/swarmlab.io/sec/swarmlab-sec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index 8341f7b..b5985d9 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -75,12 +75,16 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )" Wdir=$(pwd) +if [ -d $Wdir/.env ]; then + echo "" +else cat << EOF > $Wdir/.env REGISTRY_ADDR=localhost REGISTRY_PORT=5000 IMAGE_NAME=$HYBRID_NETWORK SSH_PORT= EOF +fi . $Wdir/.env