debian/postinst
branchdebian
changeset 116 d99f3169828a
parent 97 7953788881a4
child 224 caf9cb61f856
equal deleted inserted replaced
115:731a72b742db 116:d99f3169828a
    18 # the debian-policy package
    18 # the debian-policy package
    19 
    19 
    20 
    20 
    21 case "$1" in
    21 case "$1" in
    22     configure)
    22     configure)
       
    23         if ! getent passwd hg >/dev/null; then
       
    24             adduser --disabled-password --quiet --system \
       
    25                 --shell /bin/sh --group \
       
    26                 --home /var/lib/mercurial-server \
       
    27                 --gecos "Mercurial repositories" hg
       
    28             su -c "/usr/share/mercurial-server/init/hginit /usr/share/mercurial-server" hg
       
    29         fi
    23     ;;
    30     ;;
    24 
    31 
    25     abort-upgrade|abort-remove|abort-deconfigure)
    32     abort-upgrade|abort-remove|abort-deconfigure)
    26     ;;
    33     ;;
    27 
    34