diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2013-02-15 20:59:24 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2013-02-15 20:59:24 -0500 |
commit | 49eec46aeb12ce8e0d269ef9a04d48b64b0b5628 (patch) | |
tree | 1a838ded7247ea89222f258443102446445b1c4a /pcr/seeks/install | |
parent | 3e6467f21d721bd98fa72ec5b842a673f3d60549 (diff) | |
download | abslibre-49eec46aeb12ce8e0d269ef9a04d48b64b0b5628.tar.gz abslibre-49eec46aeb12ce8e0d269ef9a04d48b64b0b5628.tar.bz2 abslibre-49eec46aeb12ce8e0d269ef9a04d48b64b0b5628.zip |
Adding packages to pcr
Diffstat (limited to 'pcr/seeks/install')
-rw-r--r-- | pcr/seeks/install | 18 |
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 +} + + |