Fix path to manage-projects when installed from pkg
Change-Id: I74a05d8e79f4524df878542ff9d37ef8ecd50e8a
diff --git a/gerrit/client/project.sls b/gerrit/client/project.sls
index 983b423..c73c562 100644
--- a/gerrit/client/project.sls
+++ b/gerrit/client/project.sls
@@ -35,9 +35,16 @@
{%- endfor %}
{%- endif %}
+
+{%- if client.source.engine == 'pkg' %}
+ {%- set manage_projects_bin = "/usr/share/jeepyb/manage-projects" %}
+{%- else %}
+ {%- set manage_projects_bin = "manage-projects" %}
+{%- endif %}
+
gerrit_client_enforce_projects:
cmd.run:
- - name: manage-projects -d -v 2>&1 | tee {{ client.dir.project_config }}/jeepyb.log
+ - name: {{ manage_projects_bin }} -d -v 2>&1 | tee {{ client.dir.project_config }}/jeepyb.log
- env:
- PROJECTS_INI: "{{ client.dir.project_config }}/projects.ini"
- PROJECTS_YAML: "{{ client.dir.project_config }}/projects.yaml"