summaryrefslogtreecommitdiff
path: root/pcr/sphinx/sphinx.install
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-21 19:26:27 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-05-21 19:26:27 -0500
commitb9424df3adea55192b1ed3c8647f8b9d7dea1fee (patch)
treefbd91f178c744dcfd1e026c728a93befb24d8627 /pcr/sphinx/sphinx.install
parent01dc5112e9e2acb6881d291af4420c0bcfd4689f (diff)
sphinx: add new package to [pcr]
Diffstat (limited to 'pcr/sphinx/sphinx.install')
-rw-r--r--pcr/sphinx/sphinx.install11
1 files changed, 11 insertions, 0 deletions
diff --git a/pcr/sphinx/sphinx.install b/pcr/sphinx/sphinx.install
new file mode 100644
index 000000000..bb4d80f4a
--- /dev/null
+++ b/pcr/sphinx/sphinx.install
@@ -0,0 +1,11 @@
+post_install() {
+ groupadd sphinx
+ useradd -d /var/lib/sphinx -g sphinx sphinx
+ chown -R sphinx:sphinx /var/lib/sphinx
+}
+
+## arg 1: the old package version
+post_remove() {
+ userdel sphinx
+ groupdel sphinx
+}