summarylogtreecommitdiffstats
path: root/groonga.install
blob: 5472b46aa648d39ec2419cbb5c54a9bb85b8d4cb (plain)
1
2
3
4
5
6
7
8
9
10
11
post_install(){
  if [ ! -d '/var/lib/groonga' ]; then
    mkdir -p '/var/lib/groonga'
  fi
  if ! getent group groonga >/dev/null; then
    groupadd -g 185 groonga
  fi
  if ! getent passwd groonga >/dev/null; then
    useradd -c 'Groonga user' -u 185 -g groonga -d '/var/lib/groonga' -s /bin/false groonga
  fi
}