debian/postinst
changeset 366 660f5631013e
parent 314 c02eae7665af
equal deleted inserted replaced
365:f2e13e08ea13 366:660f5631013e
    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
       
    18             su -c "/usr/share/mercurial-server/init/hginit /usr/share/mercurial-server" hg
    16             su -c "/usr/share/mercurial-server/init/hginit /usr/share/mercurial-server" hg
    19         fi
    17         fi
    20     ;;
    18     ;;
    21 
    19 
    22     abort-upgrade|abort-remove|abort-deconfigure)
    20     abort-upgrade|abort-remove|abort-deconfigure)