File: festival.postinst

package info (click to toggle)
festival 1%3A2.1~release-5.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,576 kB
  • sloc: cpp: 28,398; lisp: 15,152; ansic: 5,264; sh: 5,002; java: 1,536; makefile: 787; 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#