mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-07 05:59:06 +02:00
Prepare SysV tooling in install-script test containers
The netbird package postinstall registers a SysV service when systemd is not running. The trixie and fedora images ship without /etc/init.d and the service tool, failing the postinstall before the UI gating under test.
This commit is contained in:
@@ -72,6 +72,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: prepare container
|
||||||
|
# The netbird package postinstall registers a SysV service when
|
||||||
|
# systemd is not running. The trixie and fedora images ship without
|
||||||
|
# the SysV directories and tools it needs, unlike the older images.
|
||||||
|
run: |
|
||||||
|
mkdir -p /etc/init.d
|
||||||
|
if command -v dnf >/dev/null 2>&1; then
|
||||||
|
dnf -y install initscripts-service || dnf -y install initscripts
|
||||||
|
fi
|
||||||
|
|
||||||
- name: run install script
|
- name: run install script
|
||||||
env:
|
env:
|
||||||
XDG_CURRENT_DESKTOP: GNOME
|
XDG_CURRENT_DESKTOP: GNOME
|
||||||
|
|||||||
Reference in New Issue
Block a user