summaryrefslogtreecommitdiff
path: root/src/deploy.sh
diff options
context:
space:
mode:
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