paulbsd-salt/states/nextcloud/apps.sls

17 lines
540 B
Plaintext
Raw Normal View History

2023-10-10 09:07:23 +02:00
---
{%- from "nextcloud/map.jinja" import nextcloud with context %}
{%- for app in nextcloud.apps %}
nextcloud-apps-install-{{ app }}:
cmd.run:
- name: php {{ nextcloud.install_dir }}/nextcloud/occ app:install {{ app }}
- runas: {{ nextcloud.user }}
2023-11-10 13:26:43 +01:00
- creates: {{ nextcloud.install_dir }}/nextcloud/apps/{{ app }}
- shell: /usr/bin/bash
2023-10-10 09:07:23 +02:00
{%- endfor %}
nextcloud-apps-update:
cmd.run:
- name: php {{ nextcloud.install_dir }}/nextcloud/occ app:update --all
- runas: {{ nextcloud.user }}
2023-11-10 13:26:43 +01:00
- shell: /usr/bin/bash