fix the bug for pgw post install script

This commit is contained in:
Sukchan Lee 2017-10-31 14:42:02 +00:00
parent 081f8c8808
commit 0bdbee24cf
3 changed files with 28 additions and 7 deletions

24
debian/changelog vendored
View File

@ -1,3 +1,27 @@
nextepc (0.2-4~xenial2) xenial; urgency=medium
* Fix the bug nextepc-pgwd post install script
-- Sukchan Lee <acetcom@gmail.com> Tue, 31 Oct 2017 14:07:54 +0000
nextepc (0.2-4~artful) artful; urgency=medium
* Fix the bug nextepc-pgwd post install script
-- Sukchan Lee <acetcom@gmail.com> Tue, 31 Oct 2017 14:06:31 +0000
nextepc (0.2-4~zesty) zesty; urgency=medium
* Fix the bug nextepc-pgwd post install script
-- Sukchan Lee <acetcom@gmail.com> Tue, 31 Oct 2017 14:04:23 +0000
nextepc (0.2-4~xenial) xenial; urgency=medium
* Fix the bug nextepc-pgwd post install script
-- Sukchan Lee <acetcom@gmail.com> Tue, 31 Oct 2017 14:01:58 +0000
nextepc (0.2-3~artful) artful; urgency=medium
* MongoDB re-connect using systemd

View File

@ -3,4 +3,5 @@ etc/nextepc/freeDiameter/pgw.conf
etc/nextepc/freeDiameter/pgw.cert.pem
etc/nextepc/freeDiameter/pgw.key.pem
etc/nextepc/pgw.conf
support/network/nextepc etc/network/interfaces.d
support/systemd/nextepc-pgwd.service lib/systemd/system

View File

@ -20,14 +20,10 @@ set -e
case "$1" in
configure)
if ! grep "source-directory /etc/network/interfaces.d" /etc/network/interfaces > /dev/null; then
echo "source-directory /etc/network/interfaces.d" >> /etc/network/interfaces
fi
if ! grep "pgwtun" /proc/net/dev > /dev/null; then
echo "" >> /etc/network/interfaces
echo "auto pgwtun" >> /etc/network/interfaces
echo "iface pgwtun inet static " >> /etc/network/interfaces
echo "address 45.45.0.1" >> /etc/network/interfaces
echo "netmask 255.255.0.0" >> /etc/network/interfaces
echo "pre-up ip tuntap add name pgwtun mode tun" >> /etc/network/interfaces
echo "post-down ip tuntap del name pgwtun mode tun" >> /etc/network/interfaces
ifup pgwtun
fi
;;