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
add exit on error and remove unsed code/comments
[yaml_builds.git]
/
tools
/
2genesis.sh
diff --git
a/tools/2genesis.sh
b/tools/2genesis.sh
old mode 100644
(file)
new mode 100755
(executable)
index
0b70cd4
..
5f76311
--- a/
tools/2genesis.sh
+++ b/
tools/2genesis.sh
@@
-15,9
+15,10
@@
# limitations under the License. #
##############################################################################
# limitations under the License. #
##############################################################################
-set -x
+set -x
e
TIMESTAMP=$(date +"%Y%m%d%H%M")
echo "Logging to /var/log/yaml_builds/2genesis_$TIMESTAMP.log"
TIMESTAMP=$(date +"%Y%m%d%H%M")
echo "Logging to /var/log/yaml_builds/2genesis_$TIMESTAMP.log"
+mkdir -p /var/log/yaml_builds
exec > /var/log/yaml_builds/2genesis_$TIMESTAMP.log
exec 2>&1
exec > /var/log/yaml_builds/2genesis_$TIMESTAMP.log
exec 2>&1
@@
-44,7
+45,7
@@
source $(dirname $0)/env_$SITE.sh
cd $YAML_BUILDS
# Install OS on Genesis
python $YAML_BUILDS/scripts/jcopy.py $SITE.yaml $YAML_BUILDS/tools/j2/serverrc.j2 $YAML_BUILDS/tools/"$GENESIS_NAME"rc
cd $YAML_BUILDS
# Install OS on Genesis
python $YAML_BUILDS/scripts/jcopy.py $SITE.yaml $YAML_BUILDS/tools/j2/serverrc.j2 $YAML_BUILDS/tools/"$GENESIS_NAME"rc
-/opt/akraino/
tools
/install_server_os.sh --rc /opt/akraino/yaml_builds/tools/"$GENESIS_NAME"rc --skip-confirm
+/opt/akraino/
redfish
/install_server_os.sh --rc /opt/akraino/yaml_builds/tools/"$GENESIS_NAME"rc --skip-confirm
scp $YAML_BUILDS/tars/promenade-bundle-$SITE.tar $GENESIS_HOST:/tmp/
ssh $GENESIS_HOST << EOF
scp $YAML_BUILDS/tars/promenade-bundle-$SITE.tar $GENESIS_HOST:/tmp/
ssh $GENESIS_HOST << EOF