diff options
Diffstat (limited to 'pcr/monkeysphere/monkeysphere.install')
-rw-r--r-- | pcr/monkeysphere/monkeysphere.install | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/pcr/monkeysphere/monkeysphere.install b/pcr/monkeysphere/monkeysphere.install index 2013f9f41..df25cbda5 100644 --- a/pcr/monkeysphere/monkeysphere.install +++ b/pcr/monkeysphere/monkeysphere.install @@ -3,15 +3,10 @@ # vim:set ts=2 sw=2 et: # arg 1: the new package version -pre_install() { - /bin/true -} - -# arg 1: the new package version post_install() { echo ">>> Creating monkeysphere user and group and setting permissions..." - getent group monkeysphere >/dev/null || usr/sbin/groupadd monkeysphere - getent passwd monkeysphere >/dev/null || usr/sbin/useradd -c 'Monkeysphere WoT server identification tool' -g monkeysphere -d '/var/lib/monkeysphere' -s /bin/bash monkeysphere + getent group monkeysphere >/dev/null || groupadd monkeysphere + getent passwd monkeysphere >/dev/null ||useradd -c 'Monkeysphere WoT server identification tool' -g monkeysphere -d '/var/lib/monkeysphere' -s /bin/bash monkeysphere # Should be root:root for sshd to work chown root:root /var/lib/monkeysphere @@ -19,12 +14,6 @@ post_install() { # arg 1: the new package version # arg 2: the old package version -pre_upgrade() { - /bin/true -} - -# arg 1: the new package version -# arg 2: the old package version post_upgrade() { # Should be root:root for sshd to work chown root:root /var/lib/monkeysphere @@ -32,12 +21,6 @@ post_upgrade() { # arg 1: the old package version pre_remove() { - usr/sbin/userdel monkeysphere &>/dev/null - (getent group monkeysphere >/dev/null && usr/sbin/groupdel monkeysphere &>/dev/null) || /bin/true + userdel monkeysphere &>/dev/null + (getent group monkeysphere >/dev/null && groupdel monkeysphere &>/dev/null) || /bin/true } - -# arg 1: the old package version -post_remove() { - /bin/true -} - |