Moving dev branch code to master branch
[yaml_builds.git] / tools / deploy_site.sh
index 2db8214..26ce52a 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 ##############################################################################
-# Copyright © 2018 AT&T Intellectual Property. All rights reserved.          #
+# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.        #
 #                                                                            #
 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
 # not use this file except in compliance with the License.                   #
 
 
 set -x
+TIMESTAMP=$(date +"%Y%m%d%H%M")
+echo "logging to /var/log/deploy_site_$TIMESTAMP.log"
+exec > /var/log/deploy_site_$TIMESTAMP.log
+exec 2>&1
 
 # Regional Server specific variables
 KEYSTONE_IMAGE=
@@ -67,13 +71,14 @@ getactions(){
   sleep 5
 }
 
-#clean_configdocs
-#create_configdocs
-#commit_configdocs
+sleep 900
+clean_configdocs
+create_configdocs
+commit_configdocs
 renderedconfigdocs
 
-#deploy_site
-getactions
+deploy_site
+#getactions
 #update_site
 
 ##