forked from acouzens/open5gs
fix the bug for pgw post install script
This commit is contained in:
parent
081f8c8808
commit
0bdbee24cf
|
@ -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
|
nextepc (0.2-3~artful) artful; urgency=medium
|
||||||
|
|
||||||
* MongoDB re-connect using systemd
|
* MongoDB re-connect using systemd
|
||||||
|
|
|
@ -3,4 +3,5 @@ etc/nextepc/freeDiameter/pgw.conf
|
||||||
etc/nextepc/freeDiameter/pgw.cert.pem
|
etc/nextepc/freeDiameter/pgw.cert.pem
|
||||||
etc/nextepc/freeDiameter/pgw.key.pem
|
etc/nextepc/freeDiameter/pgw.key.pem
|
||||||
etc/nextepc/pgw.conf
|
etc/nextepc/pgw.conf
|
||||||
|
support/network/nextepc etc/network/interfaces.d
|
||||||
support/systemd/nextepc-pgwd.service lib/systemd/system
|
support/systemd/nextepc-pgwd.service lib/systemd/system
|
||||||
|
|
|
@ -20,14 +20,10 @@ set -e
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
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
|
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
|
ifup pgwtun
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue