File: festival.postinst

package info (click to toggle)
festival 1.96~beta-7
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 5,132 kB
  • ctags: 3,867
  • sloc: cpp: 25,214; lisp: 14,655; sh: 4,989; java: 1,536; ansic: 1,004; makefile: 776; xml: 291; perl: 87
file content (15 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

# Remove shutdown and reboot links; this init script does not need them.
if dpkg --compare-versions "$2" lt "1.4.3-18"; then
       rm -f /etc/rc0.d/K20festival /etc/rc6.d/K20festival
fi

# Create festival user if it doesn't already exist.
if ! getent passwd festival >/dev/null; then
       adduser festival --quiet --system --ingroup audio --no-create-home
fi

#DEBHELPER#