diff options
author | Christian Pointner <equinox@spreadspace.org> | 2012-10-17 20:04:58 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2012-10-17 20:04:58 +0200 |
commit | 3b2828e86d0551af3964000b901c684be26d67c9 (patch) | |
tree | 876dafbcdd9705fa171a9de0893a08b06c56bd74 /src/manage.sh | |
parent | moved template parameter to config file (diff) |
moved output to output/<format>
Diffstat (limited to 'src/manage.sh')
-rwxr-xr-x | src/manage.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/manage.sh b/src/manage.sh index 23ea39e..1cd3a03 100755 --- a/src/manage.sh +++ b/src/manage.sh @@ -37,7 +37,7 @@ # $ sudo ./flufigut-client.sh install # -OUTPUT_DIR="output" +OUTPUT_DIR="output/flumotion" SSH_KEY="id_rsa" SSH_CONFIG="ssh.config" SSH_USER="flufigut" @@ -47,7 +47,7 @@ deploy_all() { if [ -d "$machine" ]; then machine=`basename $machine` echo "copying files to $machine ... " - tar -czf "$OUTPUT_DIR/$machine.tar.gz" "$OUTPUT_DIR/$machine"/* + tar -C "$OUTPUT_DIR" -czf "$OUTPUT_DIR/$machine.tar.gz" "$machine" scp -i "$SSH_KEY" -F "$SSH_CONFIG" "$OUTPUT_DIR/$machine.tar.gz" $SSH_USER@"$machine":/tmp ssh -i "$SSH_KEY" -F "$SSH_CONFIG" $SSH_USER@"$machine" install "/tmp/$machine.tar.gz" fi |