Skip to content

Commit d572bb6

Browse files
authored
fix(hg): make os check a string, fix git conflict mess (#433)
1 parent 706d1e4 commit d572bb6

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

salt/hg/init.sls

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -79,36 +79,6 @@ hg-user:
7979
- file: /srv/hg/wsgi
8080
{% endif %}
8181

82-
{% if grains["oscodename"] == "noble" %}
83-
/srv/hg/wsgi/python.wsgi:
84-
file.managed:
85-
- source: salt://hg/files/hg/wsgi/python3.wsgi
86-
- user: hg
87-
- mode: "0755"
88-
- require:
89-
- file: /srv/hg/wsgi
90-
{% else %}
91-
/srv/hg/wsgi/python.wsgi:
92-
file.managed:
93-
- source: salt://hg/files/hg/wsgi/python.wsgi
94-
- user: hg
95-
- mode: "0755"
96-
- require:
97-
- file: /srv/hg/wsgi
98-
{% endif %}
99-
100-
/srv/hg/wsgi/python.wsgi:
101-
file.managed:
102-
- user: hg
103-
- mode: "0755"
104-
- require:
105-
- file: /srv/hg/wsgi
106-
{% if grains["oscodename"] == "noble" %}
107-
- source: salt://hg/files/hg/wsgi/python3.wsgi
108-
{% else %}
109-
- source: salt://hg/files/hg/wsgi/python.wsgi
110-
{% endif %}
111-
11282
/srv/hg/src:
11383
file.recurse:
11484
- source: salt://hg/files/hg/src
@@ -211,7 +181,7 @@ apache2:
211181
pkg.installed:
212182
- pkgs:
213183
- apache2
214-
- libapache2-mod-wsgi{% if grains["oscodename"] == ["noble"] %}-py3{% endif %}
184+
- libapache2-mod-wsgi{% if grains["oscodename"] == "noble" %}-py3{% endif %}
215185
service.running:
216186
- enable: True
217187
- reload: True

0 commit comments

Comments
 (0)