]> gitweb.fluxo.info Git - rhatto/apps.git/commitdiff
Inception: deploy fixes
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Sep 2015 00:25:46 +0000 (21:25 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Sep 2015 00:25:46 +0000 (21:25 -0300)
inception

index a6797d42c880bb59b0574fcf19110c41f63ced7e..d5bd3d20bf22dbf8b77495eed22fa57974bd6c79 100755 (executable)
--- a/inception
+++ b/inception
@@ -56,7 +56,7 @@ elif [ "$1" == "install" ]; then
 elif [ "$1" == "deploy" ]; then
   if [ ! -z "$2" ]; then
     REMOTE="$2"
-    MODULES="`$DIRNAME/metadot/metadot list`"
+    MODULES="`$DIRNAME/metadot/metadot list | xargs`"
 
     # Sync apps
     if [ -e "$HOME/apps" ]; then
@@ -69,10 +69,10 @@ elif [ "$1" == "deploy" ]; then
     fi
 
     # Sync loaded modules
-    ssh $REMOTE <<EOF
+    ssh -T $REMOTE <<EOF
     ##### BEGIN REMOTE SCRIPT #####
     for module in $MODULES; do
-      $HOME/apps/metadot/metadot load $module
+      \$HOME/apps/metadot/metadot load \$module
     done
     ##### END REMOTE SCRIPT #######
 EOF