preserve newline at end of templates
[yaml_builds.git] / tools / single_step_deploy.sh
old mode 100644 (file)
new mode 100755 (executable)
index 8fe225d..cb2d8bb
@@ -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.                   #
 # limitations under the License.                                             #
 ##############################################################################
 
+set -x
 
 if [ -z "$1" ]
 then
-  echo "Plese pass site name as command line argument"
+  echo "Please pass site name as command line argument"
   exit -2
 else
   export SITE=${SITE:-$1}
@@ -30,6 +31,7 @@ TIMESTAMP=$(date +"%Y%m%d%H%M")
 echo "TIMESTAMP=$TIMESTAMP"
 
 echo "Validating the setup and generating the tar file"
+mkdir -p /var/log/yaml_builds
 bash $YAML_BUILDS/tools/1prom-gen.sh $SITE > /var/log/yaml_builds/1prom-gen-$TIMESTAMP.log 2>&1
 if [ $? -ne 0 ]
 then