forked from acouzens/open5gs
fix the PGW installation
This commit is contained in:
parent
46b403c43d
commit
a25de7b287
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue