diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-11-30 19:52:37 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-11-30 19:52:37 +0300 |
commit | bae7f4dc8a2da0fb5ede7b2701b9239409c03971 (patch) | |
tree | 3b129b518d30cb8e8eda3caf6859c997d1e65f79 | |
parent | f72d791e420a011cceecaed1f6f167736a7633ef (diff) | |
download | debhelper-bae7f4dc8a2da0fb5ede7b2701b9239409c03971.tar.gz |
Make dh_installsystemduser a stub
-rwxr-xr-x | dh_installsystemduser | 7 |
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 |