File: mgetty-voice.postinst

package info (click to toggle)
mgetty 1.2.1-1.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 5,800 kB
  • sloc: ansic: 42,691; sh: 6,513; perl: 6,234; makefile: 1,465; tcl: 756; lisp: 283
file content (24 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh -e

case "$1" in
    configure)
        # place the templates in /etc if they're not there ...
        for file in voice.conf; do
            if [ ! -f /etc/mgetty/$file ] ; then
                cp -a /usr/share/mgetty/templates/etc/$file /etc/mgetty/$file;
            fi;
        done

	chown -R root:voice /var/spool/voice/incoming /var/spool/voice/messages
	chmod 755 /var/spool/voice/messages
	chmod 775 /var/spool/voice/incoming
	;;
    abort-upgrade|abort-remove|abort-deconfigure)
	;;
    *)
	;;
esac

#DEBHELPER#

exit 0;