File: dancer.postinst

package info (click to toggle)
ircd 2.10.02-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 2,228 kB
  • ctags: 2,087
  • sloc: ansic: 29,122; makefile: 664; sh: 307; perl: 18
file content (25 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (3)
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
#!/bin/bash -e
cd /

case "$1" in
  configure)

    addgroup irc 2>/dev/null || true
    if adduser --system --ingroup irc dancer
    then
	chsh -s /bin/bash dancer
    fi
    adduser dancer irc 2> /dev/null 2>&1 || true
    su - dancer -c /usr/sbin/dancerconfig || true

    ;;

  abort-upgrade|abort-remove|abort-deconfigure)
    exit 0
    ;;

  *)
    exit 0
    ;;

esac