File: festival.postinst

package info (click to toggle)
festival 1%3A2.4~release-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,432 kB
  • ctags: 6,364
  • sloc: cpp: 27,729; lisp: 15,695; ansic: 6,022; sh: 5,660; java: 1,536; makefile: 769; 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#