diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-10-27 13:27:57 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-10-27 13:27:57 -0500 |
commit | 22ef9d22f878a8ba30fb627869cd2b465b5667b8 (patch) | |
tree | fa799b5453204b323b4ca2440a3939a7c00cd165 /pcr/sphinx/sphinx.install | |
parent | 29098787b2a24eaf5d7f374eca825947475c9a87 (diff) |
sphinx-2.2.10-2: updating version
Diffstat (limited to 'pcr/sphinx/sphinx.install')
-rw-r--r-- | pcr/sphinx/sphinx.install | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pcr/sphinx/sphinx.install b/pcr/sphinx/sphinx.install index bb4d80f4a..60001f6c9 100644 --- a/pcr/sphinx/sphinx.install +++ b/pcr/sphinx/sphinx.install @@ -1,9 +1,15 @@ post_install() { - groupadd sphinx - useradd -d /var/lib/sphinx -g sphinx sphinx + groupadd sphinx &>/dev/null + useradd -g sphinx -d /var/lib/sphinx -s /bin/false sphinx &>/dev/null chown -R sphinx:sphinx /var/lib/sphinx } +post_upgrade(){ + getent group sphinx >/dev/null 2>&1 || groupadd sphinx &>/dev/null + getent passwd sphinx >/dev/null 2>&1 || useradd -g sphinx -d /var/lib/sphinx \ + -s /bin/false sphinx &>/dev/null +} + ## arg 1: the old package version post_remove() { userdel sphinx |