fix the PGW installation

This commit is contained in:
Sukchan Lee 2017-10-31 04:44:11 +00:00
parent 46b403c43d
commit a25de7b287
4 changed files with 14 additions and 2 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
nextepc (0.2-2~xenial) xenial; urgency=medium
* Fix PGW installation
-- Sukchan Lee <acetcom@gmail.com> Tue, 31 Oct 2017 03:16:02 +0000
nextepc (0.2-1~artful2) artful; urgency=medium
* Fix the compile error [-Werror=pointer]

View File

@ -26,7 +26,7 @@ case "$1" in
--home /var/run/nextepc --no-create-home \
--quiet --group nextepc
fi
for dir in /var/run/nextepc /var/log/nextepc; do
for dir in /var/log/nextepc; do
if ! dpkg-statoverride --list "$dir" >/dev/null 2>&1; then
dpkg-statoverride --update --add nextepc nextepc 0755 "$dir"
fi

View File

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

View File

@ -21,6 +21,13 @@ set -e
case "$1" in
configure)
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
;;