johnl / deb-sphinx-search

Debian/Ubuntu package for the Sphinx, the free SQL full-text search engine

This URL has Read+Write access

johnl (author)
Sat Dec 13 14:37:29 -0800 2008
commit  9e16b906e8dae79d131950c5d674f40d352ed24e
tree    1d36fb6f7f5deb95cf2bfbb275c90c31e53ef984
parent  f5acaa2d9c0791dc19da50a95ae5b1daef672e1c
deb-sphinx-search / debian / sphinx-search.postinst
100644 29 lines (20 sloc) 0.508 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
# postinst script for #PACKAGE#
 
set -e
 
#DEBHELPER#
 
case "$1" in
  configure)
 
  DATADIR=/var/lib/sphinx-search
  RUNDIR=/var/run/sphinx-search
  LOGDIR=/var/log/sphinx-search
  user=sphinx
 
  if [ -z "$2" ]; then
adduser --system --no-create-home --quiet \
    --disabled-password --disabled-login \
    --shell /bin/false --group --home $DATADIR $user
    chown $user:$user $DATADIR
    chown $user:$user $DATADIR/data
    chown $user:$user $RUNDIR
    chown $user:adm $LOGDIR
  fi
esac