diff --git a/debian/changelog b/debian/changelog index 53aaef786..72431a09d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +nextepc (0.2-2~xenial) xenial; urgency=medium + + * Fix PGW installation + + -- Sukchan Lee Tue, 31 Oct 2017 03:16:02 +0000 + nextepc (0.2-1~artful2) artful; urgency=medium * Fix the compile error [-Werror=pointer] diff --git a/debian/nextepc-core.postinst b/debian/nextepc-core.postinst index 704cb3b20..be717c591 100644 --- a/debian/nextepc-core.postinst +++ b/debian/nextepc-core.postinst @@ -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 diff --git a/debian/nextepc-pgw.install b/debian/nextepc-pgw.install index 07cc22776..95f35c2ec 100644 --- a/debian/nextepc-pgw.install +++ b/debian/nextepc-pgw.install @@ -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 diff --git a/debian/nextepc-pgw.postinst b/debian/nextepc-pgw.postinst index 7cb9d480f..9459f446b 100644 --- a/debian/nextepc-pgw.postinst +++ b/debian/nextepc-pgw.postinst @@ -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 ;;