directory '/var/lib/mercurial-server/' is missing

回眸只為那壹抹淺笑 提交于 2019-12-11 23:57:33

问题


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!


回答1:


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 and delgroup commands to what you're doing:

apt-get purge mercurial-server
deluser --remove-home --system hg
delgroup  --system hg
rm -rf /var/lib/mercurial-server
apt-get update
apt-get install mercurial mercurial-server

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!




回答2:


Are you aware that mercurial-server isn't part of the mercurial project? It's a poorly maintained, third party application that does very little (nothing?) that mercurial can't already do without it.

If you're just trying to serve mercurial repositories consider using the hgweb program that came with Mercurial, or just use ssh access to the repositories in which case you need no software past the mercurial client at all.



来源:https://stackoverflow.com/questions/18871118/directory-var-lib-mercurial-server-is-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!