Do not attempt to change permissions/ownership if the package gets
upgraded from a version higher than the next release.
Do not fail if the user deleted the config file.
Be verbose when changing permissions.
Related: OS#4107
Change-Id: I48e8f5d2a36886d28366bef1918f7464a48d2159
osmo_dia2gsup doesn't have a config file in /etc/osmocom. The path I put
there didn't make sense.
Fix for:
chown: cannot access '/etc/osmocom/osmo_dia2gsup.service': No such file or directory
Fixes: 240b43f3 ("contrib/systemd: run as osmocom user")
Change-Id: I32a06db20c53fdc136989f41805c78e5d9420b9b
Run the systemd service as osmocom user and group instead of root. Set
the StateDirectory and WorkingDirectory like we have it in other Osmocom
service files. Remove the ExecStartPre mkdir, as the directory now gets
created by postinst.
Related: OS#4107
Change-Id: I2c0c7f4b98300b3b0bb5b95013b51b6b60625b95
The diameter_connect_timer can be set to reduce the ttcn3 timing.
Otherwise every test case would need to wait for at least one connect timer period to
succeed.
Related: OS#5657
Change-Id: I669a76022d866824e7b4e9f30dd7e51aa714ae7d
Currently dh_auto_build is a no-op, but move extracting depends up in
case we add a Makefile here too.
Related: osmo-epdg I2bb0b5f608cd5d9a24c2a367425c524447bd002c
Change-Id: Ib64671a8b4629dde1e21b18a6405f7ae7d87a46f
Previous the osmo-hlr always sent a wildcard APN as the only APN
which violates the spec. Further wildcard APNs aren't support
by the current Open5gs.
Since I540132ee5dcfd09f4816e02e702927e1074ca50f the osmo-hlr
supports multiple APN in the subscriber data.
Related: SYS#6391
Change-Id: I2a0af5d785ce62968f6e3952602d92cb4f37e4ab
The checkout directory should only contains source and no erlang bytecode.
Otherwise it might not compile when creating the build_dep.tar.gz on a machine
with newer erlang and try to build the package on a system with older erlang.
Change-Id: I101119392c6d0fad264c2551fded10288c87da5e
This commit improves handling of the resynchronization information in
a DIAMETER request from a UE that has a sync failure. It factors
parsing of the resync info into a helper function with a defined spec,
and handles the resynchronization info as a binary rather than a
string.
Change-Id: I2aad313d4d37d07040bc5344de3a023d34fd8ded
To build on OBS the source package must include all dependencies.
Downloading dependencies isn't allowed. generate_build_dep.sh will
download all dependencies.
The jenkins job to update OBS should do this before calling
`dpkg-buildpackage -S` to build a source package.
Related: SYS#6006
Change-Id: I22041887fd1b72ea328605d18801d412b86bfc9c
- use the rebar3' debian/rules as template
- use override targets instead of the exact targets
- only install the escriptize osmo_dia2gsup file
Related: SYS#6006
Change-Id: I40add168875de87ef0cc62deeb5377d2ce080e45
The rebar.lock contains the last known working state
of all dependencies with exact version numbers.
rebar.config only holds the minimal dependencies (package x version >=2.0.0)
Related: SYS#6006
Change-Id: I40660b23cee04ef2b4afbca34522a42a4b057e2e
The IP 127.0.0.4 is already used by the open5gs smf. Since the mme by default
tries to connect to the hss at 127.0.0.8 let's change the default here
to something that works ootb.
Change-Id: Ibe36e86e6473caab753308837b2ced0f1b53e1f2
Add initial debian packaging and a systemd service that starts
osmo_dia2gsup. Given that dependencies listed in rebar.lock are not
packaged in debian 11, this just uses rebar3 to download and compile
the dependencies during the build.
Resulting erlang files are installed to the following path, where they
become available in the erlang shell (erl):
/lib/erlang/lib/{name_of_component}/ebin/
Related: SYS#6006
Change-Id: Ic55bca1260f992d0ed8583e7c7fe948ba0160d4d
The old git URLs are still kept for compatibility, but we should
use the official git repository (now in gitea).
Change-Id: If9b70c42753e17f957241fe9be514163aee9e22d