summaryrefslogtreecommitdiff
path: root/src/deploy.sh
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2012-10-13 02:14:40 +0200
committerChristian Pointner <equinox@spreadspace.org>2012-10-13 02:14:40 +0200
commit49d50474e0a69ad45c78c2b4b3dff8ca91ef4e72 (patch)
tree25af8d3d4a713aec5d684fdf12135d6c364cef55 /src/deploy.sh
parentadded deployment scripts (not finished) (diff)
improved deployment scripts
Diffstat (limited to 'src/deploy.sh')
-rwxr-xr-xsrc/deploy.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/deploy.sh b/src/deploy.sh
index 1c7c2f8..0ed5f17 100755
--- a/src/deploy.sh
+++ b/src/deploy.sh
@@ -37,17 +37,18 @@
OUTPUT_DIR="output/"
SSH_KEY="../id_rsa"
SSH_CONFIG="../ssh.config"
+SSH_USER="flufigut"
set -e
cd $OUTPUT_DIR
for machine in *; do
if [ -d "$machine" ]; then
- echo -n "copying files to $machine ... "
+ echo "copying files to $machine ... "
tar -czf "$machine.tar.gz" "$machine"/*
- scp -i "$SSH_KEY" -F "$SSH_CONFIG" "$machine.tar.gz" "$machine":/tmp
- ssh -i "$SSH_KEY" -F "$SSH_CONFIG" "$machine" install
- echo "done."
+ scp -i "$SSH_KEY" -F "$SSH_CONFIG" "$machine.tar.gz" $SSH_USER@"$machine":/tmp
+ ssh -i "$SSH_KEY" -F "$SSH_CONFIG" $SSH_USER@"$machine" install "$machine.tar.gz"
+ rm "$machine.tar.gz"
fi
done