summaryrefslogtreecommitdiff
path: root/community/vlock/vlock.install
blob: 4cf592b35783cf39de66b2b01cc50590aff27ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_install() {
  echo -n 'Adding vlock group... '
  groupadd -g 129 vlock && echo 'done.'
}

post_upgrade() {
  cut -d: -f1 /etc/group | grep ^vlock$ >/dev/null
  if [ $? == 1 ] ; then
    post_install
  fi
}

post_remove() {
  echo -n 'Removing vlock group... '
  groupdel vlock && echo 'done.'
}

# vim:set ts=2 sw=2 et: