From cd33314d0b63c941ee69c186195ea4a7dfbcfd0e Mon Sep 17 00:00:00 2001 From: Daniel Pavel Date: Wed, 22 May 2013 06:55:59 +0300 Subject: [PATCH] use passwd | addgroup in post-install --- packaging/debian/control | 2 +- packaging/debian/solaar.postinst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/debian/control b/packaging/debian/control index 355e5ba5..4e9ff3ca 100644 --- a/packaging/debian/control +++ b/packaging/debian/control @@ -13,7 +13,7 @@ Vcs-browser: http://github.com/pwr/Solaar Package: solaar Architecture: all -Depends: ${misc:Depends}, udev (>= 175), adduser, +Depends: ${misc:Depends}, udev (>= 175), passwd | adduser, ${python:Depends}, python-pyudev (>= 0.13), python-gi (>= 3.2), gir1.2-gtk-3.0 (>= 3.4), ${DesktopIconTheme} Recommends: gir1.2-notify-0.7 diff --git a/packaging/debian/solaar.postinst b/packaging/debian/solaar.postinst index ee9b1ff5..1c0ca04e 100644 --- a/packaging/debian/solaar.postinst +++ b/packaging/debian/solaar.postinst @@ -4,9 +4,9 @@ set -e # shamelessly copied from usbmuxd.postinst -# creating plugdev group if he isn't already there +# creating plugdev group if it's not already present on the system if ! getent group plugdev >/dev/null; then - addgroup --system plugdev + groupadd --system --force plugdev || addgroup --system plugdev fi #DEBHELPER#