Skip to content

Commit

Permalink
fix(hg): add branches for noble
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Aug 1, 2024
1 parent 8c7d314 commit 81a76b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions salt/hg/files/hg/wsgi/python.wsgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ from mercurial import encoding

CONFIG = '/srv/hg/repos.conf'
encoding.encoding = 'utf-8'
{% if grains["oscodename"] == "noble" %}
application = hgwebdir(CONFIG.encode())
{% else %}
application = hgwebdir(CONFIG)
{% endif %}

4 changes: 3 additions & 1 deletion salt/hg/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ hg-deps:
pkg.installed:
- pkgs:
- mercurial
{% if grains["oscodename"] == ["noble"] %}
- python3-pygments
{% endif %}

svn-deps:
pkg.installed:
Expand Down Expand Up @@ -159,7 +161,7 @@ apache2:
pkg.installed:
- pkgs:
- apache2
- libapache2-mod-wsgi-py3
- libapache2-mod-wsgi{% if grains["oscodename"] == ["noble"] %}-py3{% endif %}
service.running:
- enable: True
- reload: True
Expand Down

0 comments on commit 81a76b1

Please sign in to comment.