mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-04 14:03:21 +00:00
fix the PGW installation
This commit is contained in:
6
debian/changelog
vendored
6
debian/changelog
vendored
@@ -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
|
nextepc (0.2-1~artful2) artful; urgency=medium
|
||||||
|
|
||||||
* Fix the compile error [-Werror=pointer]
|
* Fix the compile error [-Werror=pointer]
|
||||||
|
|||||||
2
debian/nextepc-core.postinst
vendored
2
debian/nextepc-core.postinst
vendored
@@ -26,7 +26,7 @@ case "$1" in
|
|||||||
--home /var/run/nextepc --no-create-home \
|
--home /var/run/nextepc --no-create-home \
|
||||||
--quiet --group nextepc
|
--quiet --group nextepc
|
||||||
fi
|
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
|
if ! dpkg-statoverride --list "$dir" >/dev/null 2>&1; then
|
||||||
dpkg-statoverride --update --add nextepc nextepc 0755 "$dir"
|
dpkg-statoverride --update --add nextepc nextepc 0755 "$dir"
|
||||||
fi
|
fi
|
||||||
|
|||||||
1
debian/nextepc-pgw.install
vendored
1
debian/nextepc-pgw.install
vendored
@@ -4,4 +4,3 @@ 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/systemd/nextepc-pgwd.service lib/systemd/system
|
support/systemd/nextepc-pgwd.service lib/systemd/system
|
||||||
support/network/nextepc etc/network/interfaces.d
|
|
||||||
|
|||||||
7
debian/nextepc-pgw.postinst
vendored
7
debian/nextepc-pgw.postinst
vendored
@@ -21,6 +21,13 @@ set -e
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
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
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user