summaryrefslogtreecommitdiff
path: root/pcr/seeks/install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-16 00:07:09 -0800
committerroot <root@rshg054.dnsready.net>2013-02-16 00:07:09 -0800
commit4a4f6be8604aa35bdc81ae29d86b07dc8aea0c5c (patch)
tree41f9694a761d6e5637f15f9f9241e5b84cd8897b /pcr/seeks/install
parent067830244f6b16cb094a59e5ca8fa262bd66a2ec (diff)
Sat Feb 16 00:07:08 PST 2013
Diffstat (limited to 'pcr/seeks/install')
-rw-r--r--pcr/seeks/install18
1 files changed, 18 insertions, 0 deletions
diff --git a/pcr/seeks/install b/pcr/seeks/install
new file mode 100644
index 000000000..35f383a3c
--- /dev/null
+++ b/pcr/seeks/install
@@ -0,0 +1,18 @@
+post_install() {
+ getent group seeks >/dev/null || groupadd -r seeks
+ getent passwd seeks >/dev/null || useradd -r -c "Seeks daemon" -g seeks -M -d /var/run/seeks -s /bin/false seeks
+ passwd -l seeks &>/dev/null
+ touch var/log/seeks.log
+ chown seeks:log var/log/seeks.log
+ mkdir -p var/lib/seeks
+ touch var/lib/seeks/seeks.db
+ chown -R seeks:seeks var/lib/seeks
+}
+
+pre_remove() {
+ getent passwd seeks &>/dev/null && userdel seeks >/dev/null
+ getent group seeks &>/dev/null && groupdel seeks >/dev/null
+ return 0
+}
+
+