diff --git a/salt/hg/init.sls b/salt/hg/init.sls index a4135a20..341a1a2d 100644 --- a/salt/hg/init.sls +++ b/salt/hg/init.sls @@ -79,6 +79,24 @@ hg-user: - file: /srv/hg/wsgi {% endif %} +{% if grains["oscodename"] == "noble" %} +/srv/hg/wsgi/python.wsgi: + file.managed: + - source: salt://hg/files/hg/wsgi/python3.wsgi + - user: hg + - mode: "0755" + - require: + - file: /srv/hg/wsgi +{% else %} +/srv/hg/wsgi/python.wsgi: + file.managed: + - source: salt://hg/files/hg/wsgi/python.wsgi + - user: hg + - mode: "0755" + - require: + - file: /srv/hg/wsgi +{% endif %} + /srv/hg/src: file.recurse: - source: salt://hg/files/hg/src