X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=tools%2F3deploy_site.sh;h=06a95b00cd7a2689f86f1ccc3844d0993bc3b1cb;hb=6373eaec0b198e0b72347112b91414917bbcc464;hp=5f30f0e1b7c84dfa93baff324457d70764783276;hpb=ff41a884070ac6afe843d14c4e9dd44a4a411125;p=yaml_builds.git diff --git a/tools/3deploy_site.sh b/tools/3deploy_site.sh index 5f30f0e..06a95b0 100755 --- a/tools/3deploy_site.sh +++ b/tools/3deploy_site.sh @@ -16,7 +16,13 @@ ############################################################################## -set -x +set -xe +LOGDIR="/var/log/akraino" +mkdir -p $LOGDIR +LOGFILE="$LOGDIR/${1}_$(date +"%Y%m%d%H%M%z")_$(basename $0|cut -d. -f1)" +echo "logging to $LOGFILE" +exec 1> >(tee -a $LOGFILE) +exec 2>&1 source $(dirname $0)/setenv.sh @@ -42,3 +48,8 @@ ssh $GENESIS_HOST << EOF bash update_iptables.sh bash deploy_site.sh EOF + +exec 2>&- +exec 1>&- +exit 0 +