Skip to content

Commit

Permalink
fix(hg): make os check a string, fix git conflict mess (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee authored Aug 1, 2024
1 parent 706d1e4 commit d572bb6
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions salt/hg/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -79,36 +79,6 @@ 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/wsgi/python.wsgi:
file.managed:
- user: hg
- mode: "0755"
- require:
- file: /srv/hg/wsgi
{% if grains["oscodename"] == "noble" %}
- source: salt://hg/files/hg/wsgi/python3.wsgi
{% else %}
- source: salt://hg/files/hg/wsgi/python.wsgi
{% endif %}

/srv/hg/src:
file.recurse:
- source: salt://hg/files/hg/src
Expand Down Expand Up @@ -211,7 +181,7 @@ apache2:
pkg.installed:
- pkgs:
- apache2
- libapache2-mod-wsgi{% if grains["oscodename"] == ["noble"] %}-py3{% endif %}
- libapache2-mod-wsgi{% if grains["oscodename"] == "noble" %}-py3{% endif %}
service.running:
- enable: True
- reload: True
Expand Down

0 comments on commit d572bb6

Please sign in to comment.