Code Review
/
yaml_builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
multiple fixes for Airship treasuremap 1.3
[yaml_builds.git]
/
tools
/
3deploy_site.sh
diff --git
a/tools/3deploy_site.sh
b/tools/3deploy_site.sh
index
5b10c9c
..
2e998d5
100755
(executable)
--- a/
tools/3deploy_site.sh
+++ b/
tools/3deploy_site.sh
@@
-17,6
+17,12
@@
set -xe
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
source $(dirname $0)/setenv.sh
@@
-33,12
+39,26
@@
source $(dirname $0)/env_$SITE.sh
ssh $GENESIS_HOST << EOF
cd /root/akraino
ssh $GENESIS_HOST << EOF
cd /root/akraino
- bash configs/promenade-bundle/genesis.sh
+ echo "#######################################################"
+ echo "# Running genesis.sh script "
+ echo "#######################################################"
+ 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.
# 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.
+ echo "#######################################################"
+ echo "# Updating iptables "
+ echo "#######################################################"
bash update_iptables.sh
bash update_iptables.sh
- bash deploy_site.sh
+ echo "#######################################################"
+ echo "# Running deploy_site.sh script "
+ echo "#######################################################"
+ #bash deploy_site.sh
EOF
EOF
+
+exec 2>&-
+exec 1>&-
+exit 0
+