File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,9 +3,4 @@ from mercurial import encoding
33
44CONFIG = '/srv/hg/repos.conf'
55encoding .encoding = 'utf-8'
6- {% if grains ["oscodename" ] == "noble" % }
7- application = hgwebdir (CONFIG .encode ())
8- {% else % }
96application = hgwebdir (CONFIG )
10- {% endif % }
11-
Original file line number Diff line number Diff line change 1+ from mercurial .hgweb .hgwebdir_mod import hgwebdir
2+ from mercurial import encoding
3+
4+ CONFIG = '/srv/hg/repos.conf'
5+ encoding .encoding = 'utf-8'
6+ application = hgwebdir (CONFIG .encode ())
Original file line number Diff line number Diff line change @@ -58,6 +58,26 @@ hg-user:
5858 - file_mode: " 0755"
5959 - require:
6060 - user: hg-user
61+ - exclude_pat:
62+ - python*.wsgi
63+
64+ {% if grains[" oscodename" ] == " noble" %}
65+ /srv/hg/wsgi/python3.wsgi :
66+ file.managed :
67+ - source: salt://hg/files/hg/wsgi/python3.wsgi
68+ - user: hg
69+ - mode: " 0755"
70+ - require:
71+ - file: /srv/hg/wsgi
72+ {% else %}
73+ /srv/hg/wsgi/python.wsgi :
74+ file.managed :
75+ - source: salt://hg/files/hg/wsgi/python.wsgi
76+ - user: hg
77+ - mode: " 0755"
78+ - require:
79+ - file: /srv/hg/wsgi
80+ {% endif %}
6181
6282/srv/hg/src :
6383 file.recurse :
You can’t perform that action at this time.
0 commit comments