diff --git a/init.sh b/init.sh index cf69029..078297b 100755 --- a/init.sh +++ b/init.sh @@ -44,7 +44,7 @@ else echo -n "client name: " read -r CLIENT_NAME - if [ -z $HOME/.ssh/deploy_key ]; then + if [ ! -f $HOME/.ssh/deploy_key ]; then echo "create ssh key" echo -n "ssh passphrase: " @@ -106,7 +106,7 @@ fi -if [ -z $WA_REPO/node_type.sh ]; then +if [ ! -f $WA_REPO/node_type.sh ]; then echo " " echo -n "init as master? type yes: " read -r init_as_master