diff options
author | Bernie Innocenti <bernie@codewiz.org> | 2010-03-30 21:31:29 -0300 |
---|---|---|
committer | Bernie Innocenti <bernie@codewiz.org> | 2010-03-30 21:31:29 -0300 |
commit | cf1a9f710bdeefd1ca36bec729a99298e16376c4 (patch) | |
tree | 4e8a6b2fef5d669a80c061dba6f50ef8799e0041 /packaging | |
parent | 0fac6fc8a4e82c1639d9467a6aaf9274d04209dd (diff) |
rpm: assign a real shell to user monkeysphere
Sorry for the patch flurry, this should make the package usable in
Fedora.
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/rpm/monkeysphere.spec | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/packaging/rpm/monkeysphere.spec b/packaging/rpm/monkeysphere.spec index 625b8c8..9566698 100644 --- a/packaging/rpm/monkeysphere.spec +++ b/packaging/rpm/monkeysphere.spec @@ -1,7 +1,7 @@ Name: monkeysphere Summary: Use the OpenPGP web of trust to verify ssh connections Version: 0.29 -Release: 2 +Release: 3 License: GPLv3+ Group: Applications/Internet URL: http://web.monkeysphere.info/ @@ -36,15 +36,14 @@ mkdir -p %{buildroot}%{_var}/lib/monkeysphere %{__rm} -rf %{buildroot} %pre -getent group %{name} >/dev/null || groupadd -r %{name} -getent passwd %{name} >/dev/null || \ -useradd -r -g %{name} -d %{_var}/lib/%{name} -s /sbin/nologin \ - -c "Monkeysphere authentication user" %{name} +groupadd -r %{name} &>/dev/null || : +useradd -r -g %{name} -d %{_var}/lib/%{name} -s /bin/bash \ + -c "Monkeysphere authentication user" %{name} &>/dev/null || : exit 0 %postun -userdel %{name} >/dev/null -groupdel %{name} >/dev/null +test "$1" != 0 || userdel %{name} &>/dev/null || : +test "$1" != 0 || groupdel %{name} &>/dev/null || : %files %defattr(-, root, root, 0755) @@ -72,6 +71,10 @@ groupdel %{name} >/dev/null %changelog +* Tue Mar 30 2010 Bernie Innocenti <bernie@codewiz.org> - 0.28-3 +- Give a real shell to monkeysphere user. +- Simplify pre/postun macros. + * Tue Mar 30 2010 Bernie Innocenti <bernie@codewiz.org> - 0.28-2 - Create user monkeysphere on installation. |