File tree Expand file tree Collapse file tree 3 files changed +26
-5
lines changed Expand file tree Collapse file tree 3 files changed +26
-5
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,4 @@ from mercurial import encoding
3
3
4
4
CONFIG = '/srv/hg/repos.conf'
5
5
encoding .encoding = 'utf-8'
6
- {% if grains ["oscodename" ] == "noble" % }
7
- application = hgwebdir (CONFIG .encode ())
8
- {% else % }
9
6
application = 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:
58
58
- file_mode: " 0755"
59
59
- require:
60
60
- 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 %}
61
81
62
82
/srv/hg/src :
63
83
file.recurse :
You can’t perform that action at this time.
0 commit comments