diff --git a/scripts/install_xrdp_build_dependencies_with_apt.sh b/scripts/install_xrdp_build_dependencies_with_apt.sh index c832bc2c..5c366888 100755 --- a/scripts/install_xrdp_build_dependencies_with_apt.sh +++ b/scripts/install_xrdp_build_dependencies_with_apt.sh @@ -72,7 +72,11 @@ esac # We need systemd-dev for Debian-based systems using systemd if command -v systemctl >/dev/null; then - PACKAGES="$PACKAGES systemd-dev" + # Check for systemd version >= 255 + set -- $(systemctl --version) + if [ "$#" -gt 2 ] && [ "$1" = systemd ] && [ "$2" -ge 255 ]; then + PACKAGES="$PACKAGES systemd-dev" + fi fi case "$ARCH"