Code Review
/
demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improve the way to deploy onap via proxy
[demo.git]
/
boot
/
so_serv.sh
diff --git
a/boot/so_serv.sh
b/boot/so_serv.sh
index
d324447
..
762d2e1
100644
(file)
--- a/
boot/so_serv.sh
+++ b/
boot/so_serv.sh
@@
-8,6
+8,14
@@
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
# Short-Description: Start daemon at boot time
# 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 != " " ]
+then
+ export http_proxy=$HTTP_PROXY
+ export https_proxy=$HTTPS_PROXY
+fi
dir="/opt"
cmd="./so_vm_init.sh"
dir="/opt"
cmd="./so_vm_init.sh"