summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-11-30 19:52:37 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-11-30 19:52:37 +0300
commitbae7f4dc8a2da0fb5ede7b2701b9239409c03971 (patch)
tree3b129b518d30cb8e8eda3caf6859c997d1e65f79
parentf72d791e420a011cceecaed1f6f167736a7633ef (diff)
downloaddebhelper-bae7f4dc8a2da0fb5ede7b2701b9239409c03971.tar.gz
Make dh_installsystemduser a stub
-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