aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-10-26 20:21:27 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-26 20:21:27 +0000
commit6dc05ff5fa93e155953d42cb662dea48a67a08e4 (patch)
tree63e97dfe0ba03a10bd04e38a1132316663ec6485
parentdaa59351a9b39a0bb76a626b699250a52d6f7bc7 (diff)
parent6306f51b54a2d49e337a864d844d661731d580c5 (diff)
Merge "vCPE vG-MUX- fix auto ugrade disable configuration"
-rw-r--r--vnfs/vCPE/scripts/v_gmux_install.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/vnfs/vCPE/scripts/v_gmux_install.sh b/vnfs/vCPE/scripts/v_gmux_install.sh
index 1907a5f1..50f754da 100644
--- a/vnfs/vCPE/scripts/v_gmux_install.sh
+++ b/vnfs/vCPE/scripts/v_gmux_install.sh
@@ -373,6 +373,13 @@ EOF
l_version=$(echo "${l_version#*>}")
mv vpp-integration/minimal-distribution/target/vpp-integration-distribution-${l_version}-hc/vpp-integration-distribution-${l_version} /opt/honeycomb
sed -i 's/127.0.0.1/0.0.0.0/g' /opt/honeycomb/config/honeycomb.json
+
+ # Disable automatic upgrades
+ if [[ $CLOUD_ENV != "rackspace" ]]
+ then
+ echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/10periodic
+ sed -i 's/\(APT::Periodic::Unattended-Upgrade\) "1"/\1 "0"/' /etc/apt/apt.conf.d/20auto-upgrades
+ fi
fi # endif BUILD_STATE != "done"
if [[ $BUILD_STATE != "build" ]]
@@ -582,7 +589,6 @@ EOF
sed -i "s/ens[0-9]*/eth0/g" /etc/network/interfaces.d/*.cfg
sed -i "s/ens[0-9]*/eth0/g" /etc/udev/rules.d/70-persistent-net.rules
echo 'network: {config: disabled}' >> /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
- echo "APT::Periodic::Unattended-Upgrade \"0\";" >> /etc/apt/apt.conf.d/10periodic
reboot
fi