diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-10-23 20:39:42 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-10-23 20:41:13 -0300 |
commit | 073b7a788381b3140abfa003303be5e9e23949e2 (patch) | |
tree | 9f282fd4781b10a19b50fe072ad0e8ac23cd3e2c /pcr/monkeysphere/monkeysphere.install | |
parent | 2ee8af0056ce7a3df107db877e8152447fbe99e2 (diff) | |
download | abslibre-073b7a788381b3140abfa003303be5e9e23949e2.tar.gz abslibre-073b7a788381b3140abfa003303be5e9e23949e2.tar.bz2 abslibre-073b7a788381b3140abfa003303be5e9e23949e2.zip |
monkeysphere
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 -} - |