X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=tools%2F3deploy_site.sh;h=34fb3dc1f9c7397e99e0e5952fd36527a627602f;hb=fbb206730195c6f03ded7658d08f1ef708ebf88b;hp=5b10c9c10a546b51959aa2748b70cf01330944c4;hpb=1951ee4f75821702845cbf84243f7aadd032fd53;p=yaml_builds.git diff --git a/tools/3deploy_site.sh b/tools/3deploy_site.sh index 5b10c9c..34fb3dc 100755 --- a/tools/3deploy_site.sh +++ b/tools/3deploy_site.sh @@ -17,6 +17,12 @@ 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 @@ -33,12 +39,17 @@ source $(dirname $0)/env_$SITE.sh ssh $GENESIS_HOST << EOF cd /root/akraino - bash configs/promenade-bundle/genesis.sh + bash genesis.sh # Shipyard takes time to really come up and start responding. date sleep 900 # Following is a workaround, tested on dell servers. # TODO to be removed when not required. bash update_iptables.sh - bash deploy_site.sh + #bash deploy_site.sh EOF + +exec 2>&- +exec 1>&- +exit 0 +