~benklop/+junk/libcec-daemon

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Ben Klopfenstein
  • Date: 2016-11-22 08:17:20 UTC
  • Revision ID: ben@klopnet.com-20161122081720-phsb1vf770hfdxiq
add a udev file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e                                                                                                         
 
2
. /usr/share/debconf/confmodule                                                                                      
 
3
                                                                                                                     
 
4
case "$1" in
 
5
    configure)
 
6
 
 
7
    #only create a user if they don't already exist
 
8
    if ! getent passwd cec 1>/dev/null; then
 
9
        adduser --quiet --system --group --disabled-password --system \
 
10
            --shell /bin/sh cec
 
11
    fi
 
12
abort-upgrade|abort-remove|abort-deconfigure)
 
13
 
 
14
    ;;
 
15
 
 
16
    *)
 
17
    echo "postinst called with unknown argument \`$1'" >&2
 
18
    db_set mythtv/mysql_mythtv_password ""
 
19
    exit 1
 
20
    ;;
 
21
esac
 
22
exit 0
 
23