summaryrefslogtreecommitdiff
path: root/pcr/sphinx/sphinx.install
diff options
context:
space:
mode:
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
+}