From bae7f4dc8a2da0fb5ede7b2701b9239409c03971 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sat, 30 Nov 2019 19:52:37 +0300 Subject: Make dh_installsystemduser a stub --- dh_installsystemduser | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dh_installsystemduser b/dh_installsystemduser index cd9ee12c..b5c2a0ce 100755 --- a/dh_installsystemduser +++ b/dh_installsystemduser @@ -10,6 +10,13 @@ use strict; use warnings; use Debian::Debhelper::Dh_Lib; +my $deb_host_arch_os = dpkg_architecture_value('DEB_HOST_ARCH_OS'); +if ($deb_host_arch_os ne 'linux') +{ + warning("systemd is unsupported on $deb_host_arch_os, doing nothing"); + exit(0); +} + our $VERSION = DH_BUILTIN_VERSION; =head1 SYNOPSIS -- cgit v1.2.3