X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=boot%2Fdcae2_serv.sh;h=cfb77e451104b82b7ac1316d3e088fe7f29f0630;hb=13ab66f705479cab2d778f0ec5e621cd2f8d6378;hp=a86906a3a2e134206231f3938ca6e30130b32be5;hpb=a319ead95833ed8d4c5afe632ad535b0cdfbcd01;p=demo.git diff --git a/boot/dcae2_serv.sh b/boot/dcae2_serv.sh index a86906a3..cfb77e45 100644 --- a/boot/dcae2_serv.sh +++ b/boot/dcae2_serv.sh @@ -1,7 +1,7 @@ #!/bin/sh ############################################################################# # -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2017 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. @@ -17,14 +17,22 @@ ############################################################################# ### BEGIN INIT INFO -# Provides: -# Required-Start: $remote_fs $syslog -# Required-Stop: $remote_fs $syslog -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 +# Provides: dcaegen2-bootstrap +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 # Short-Description: Start daemon at boot time -# Description: Enable service provided by daemon. +# Description: Enable service provided by daemon. ### END INIT INFO +HTTP_PROXY=$(cat /opt/config/http_proxy.txt) +HTTPS_PROXY=$(cat /opt/config/https_proxy.txt) + +if [ $HTTP_PROXY != "no_proxy" ] +then + export http_proxy=$HTTP_PROXY + export https_proxy=$HTTPS_PROXY +fi dir="/opt" cmd="./dcae2_vm_init.sh"