After reinstall mercurial-server, directory '/var/lib/mercurial-server/' missing
apt-get purge mercurial-server
sudo rm -rf /var/lib/mercurial-server
sudo apt-get update
sudo apt-get install mercurial mercurial-server
i try:
shabak@Ubuntu:/etc/mercurial-server$ cd /var/lib/mercurial-server
-bash: cd: /var/lib/mercurial-server: No such file or directory
I can't find the folder 'repos'.
Please help!
The install script creates and initializes that directory only if the "hg" user doesn't exist. Otherwise it assumes you have an existing setup it should use. Try adding these
deluser
anddelgroup
commands to what you're doing:Alternately, before the "purge", do "dpkg-reconfigure mercurial-server" and set the option that destroys all data.
I'll detect and fix this in a future revision - thanks for reporting it!