X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=tools%2Fsingle_step_deploy.sh;h=cb2d8bba25f9773b85b9835d70b98b2b32efe4f8;hb=52695cc2a0238569ffcaaba211c3f26589be70f3;hp=8fe225ddce6806785a3ec24d6559e2f6fc4022d1;hpb=8ca1343f22312d9711b92fed95ad52655842451a;p=yaml_builds.git diff --git a/tools/single_step_deploy.sh b/tools/single_step_deploy.sh old mode 100644 new mode 100755 index 8fe225d..cb2d8bb --- a/tools/single_step_deploy.sh +++ b/tools/single_step_deploy.sh @@ -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. # @@ -15,10 +15,11 @@ # 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