From 49eec46aeb12ce8e0d269ef9a04d48b64b0b5628 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Fri, 15 Feb 2013 20:59:24 -0500 Subject: Adding packages to pcr --- pcr/seeks/seeks.install | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pcr/seeks/seeks.install (limited to 'pcr/seeks/seeks.install') diff --git a/pcr/seeks/seeks.install b/pcr/seeks/seeks.install new file mode 100644 index 000000000..bf9849e78 --- /dev/null +++ b/pcr/seeks/seeks.install @@ -0,0 +1,12 @@ +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/lib/seeks -s /bin/false seeks + passwd -l seeks &>/dev/null + chown seeks:seeks var/log/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 +} -- cgit v1.2.3-54-g00ecf