debian/postinst
branchdebian
changeset 291 32dba1a70a54
parent 224 caf9cb61f856
child 314 c02eae7665af
equal deleted inserted replaced
290:199952d928e0 291:32dba1a70a54
    11         if ! getent passwd hg >/dev/null; then
    11         if ! getent passwd hg >/dev/null; then
    12             adduser --disabled-password --quiet --system \
    12             adduser --disabled-password --quiet --system \
    13                 --shell /bin/sh --group \
    13                 --shell /bin/sh --group \
    14                 --home /var/lib/mercurial-server \
    14                 --home /var/lib/mercurial-server \
    15                 --gecos "Mercurial repositories" hg
    15                 --gecos "Mercurial repositories" hg
       
    16             # Make sure Mercurial's modules will work when we come to use them
       
    17             update-python-modules -p
    16             su -c "/usr/share/mercurial-server/init/hginit /usr/share/mercurial-server" hg
    18             su -c "/usr/share/mercurial-server/init/hginit /usr/share/mercurial-server" hg
    17         fi
    19         fi
    18     ;;
    20     ;;
    19 
    21 
    20     abort-upgrade|abort-remove|abort-deconfigure)
    22     abort-upgrade|abort-remove|abort-deconfigure)