18870: Fix remote add
[arvados.git] / tools / salt-install / installer.sh
index d9666cbc04413b3d3102b93531341f818ab89521..4d601d9bf906b16d9a954cd9eccf86f1533c7084 100755 (executable)
@@ -64,6 +64,7 @@ case "$subcmd" in
 
        source ${CONFIG_FILE}
 
 
        source ${CONFIG_FILE}
 
+       git add -A
        git commit -m"prepare for deploy"
        for NODE in "${!NODES[@]}"
        do
        git commit -m"prepare for deploy"
        for NODE in "${!NODES[@]}"
        do
@@ -72,7 +73,7 @@ case "$subcmd" in
            else
                if ! ssh $NODE test -d arvados-setup.git ; then
                    ssh $NODE git init --bare arvados-setup.git
            else
                if ! ssh $NODE test -d arvados-setup.git ; then
                    ssh $NODE git init --bare arvados-setup.git
-                   git add remote $NODE $DEPLOY_USER@$NODE:arvados-setup.git
+                   git remote add $NODE $DEPLOY_USER@$NODE:arvados-setup.git
                    git push $NODE
                    ssh $NODE git clone arvados-setup.git arvados-setup
                fi
                    git push $NODE
                    ssh $NODE git clone arvados-setup.git arvados-setup
                fi