install
changeset 47 ebcc230f21e4
parent 44 cf851f3ddf16
child 52 f9eb98bb0791
equal deleted inserted replaced
46:d2bbab5ffd0e 47:ebcc230f21e4
    22     src/init/conf/remote-hgrc \
    22     src/init/conf/remote-hgrc \
    23     src/init/conf/access.conf
    23     src/init/conf/access.conf
    24 install -o root -g root -d /etc/mercurial-server/keys/root
    24 install -o root -g root -d /etc/mercurial-server/keys/root
    25 install -o root -g root -d /etc/mercurial-server/keys/users
    25 install -o root -g root -d /etc/mercurial-server/keys/users
    26 
    26 
    27 if [ x$(getent passwd hg) == x ] ; then
    27 if [ x$(getent passwd hg | wc -c) = x0 ] ; then
    28     adduser --system --shell /bin/sh --group --disabled-password \
    28     adduser --system --shell /bin/sh --group --disabled-password \
    29         --gecos "Mercurial repositories" hg
    29         --gecos "Mercurial repositories" hg
    30     su -c /usr/local/lib/mercurial-server/init/hginit hg
    30     su -c /usr/local/lib/mercurial-server/init/hginit hg
    31 fi
    31 fi