From 00ea97f9b9fb16978a09fe21b8f98359f627ff28 Mon Sep 17 00:00:00 2001 From: zeus Date: Tue, 5 Jan 2021 20:00:42 +0200 Subject: [PATCH] if dir --- install/usr/share/swarmlab.io/sec/swarmlab-sec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index b5985d9..baddbef 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -75,9 +75,7 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )" Wdir=$(pwd) -if [ -d $Wdir/.env ]; then - echo "" -else +if [ ! -f $Wdir/.env ]; then cat << EOF > $Wdir/.env REGISTRY_ADDR=localhost REGISTRY_PORT=5000