summaryrefslogtreecommitdiff
path: root/dh_installsystemduser
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installsystemduser')
-rwxr-xr-xdh_installsystemduser7
1 files changed, 7 insertions, 0 deletions
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