Skip to content

Commit fc30a5f

Browse files
authored
Merge pull request neutrinolabs#3503 from matt335672/fix_systemd_regression
Only add systemd-dev for systemd versions >= 255
2 parents 91b60b8 + 857a5bd commit fc30a5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/install_xrdp_build_dependencies_with_apt.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ esac
7272

7373
# We need systemd-dev for Debian-based systems using systemd
7474
if command -v systemctl >/dev/null; then
75-
PACKAGES="$PACKAGES systemd-dev"
75+
# Check for systemd version >= 255
76+
set -- $(systemctl --version)
77+
if [ "$#" -gt 2 ] && [ "$1" = systemd ] && [ "$2" -ge 255 ]; then
78+
PACKAGES="$PACKAGES systemd-dev"
79+
fi
7680
fi
7781

7882
case "$ARCH"

0 commit comments

Comments
 (0)