#!/bin/bash if [ $# != 2 ]; then echo "Usage: $0 " echo "eg: $0 shell.goanna.info glennmaughan" exit 1 fi $LOG4E/misc/package-web /tmp/goanna-log4e-web.tgz if [ $? != 0 ]; then echo "Error packaging web" exit 1 fi echo "Transfering package to $1" scp /tmp/goanna-log4e-web.tgz ${2}@${1}: if [ $? != 0 ]; then echo "Error copying web package" exit 1 fi echo "Unpacking package on $1" ssh -l $2 $1 "cd /home/groups/g/go/goanna/htdocs/log4e; tar xfzv ~/goanna-log4e-web.tgz" if [ $? != 0 ]; then echo "Error unpacking web package" exit 1 fi