summarylogtreecommitdiffstats
path: root/gale.install
blob: 7a778407b383c11063c313d831296ac2bb4dbc48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- shell-script -*-
post_install() {
  if ! getent passwd gale &> /dev/null; then
    useradd -r -g daemon -d /var/lib/gale -m -s /sbin/nologin gale
  fi
  chown -R gale:daemon /etc/gale
}

post_remove() {
  # don't try to remove a non-local account
  if getent -s files passwd gale 2> /dev/null; then
    userdel gale
  fi
}

# Local Variables:
# sh-basic-offset: 2
# sh-indentation: 2
# End: