paulbsd-salt/states/nextcloud/config.sls

27 lines
891 B
Plaintext
Raw Normal View History

2020-07-10 00:58:55 +02:00
---
{%- from "nextcloud/map.jinja" import nextcloud with context %}
2021-10-15 12:09:00 +02:00
{%- set _ = nextcloud.config.update({"version": salt['nextcloud.get_version'](nextcloud.install_dir + "/nextcloud/version.php")}) %}
2020-07-10 00:58:55 +02:00
nextcloud-config:
file.managed:
- name: {{ nextcloud.install_dir }}/nextcloud/config/config.php
- source: salt://nextcloud/templates/config.php.j2
- user: {{ nextcloud.user }}
- group: {{ nextcloud.group }}
- template: jinja
2021-11-17 22:57:15 +01:00
- context:
nextcloud: {{ nextcloud }}
2021-10-15 12:09:00 +02:00
nextcloud-upgrade:
cmd.run:
- name: php {{ nextcloud.install_dir }}/nextcloud/occ upgrade
- runas: {{ nextcloud.user }}
- onchanges:
- archive: nextcloud-archive
2023-07-21 23:15:19 +02:00
nextcloud-add-missing-indices:
cmd.run:
- name: php {{ nextcloud.install_dir }}/nextcloud/occ db:add-missing-indices
- runas: {{ nextcloud.user }}
- onchanges:
- archive: nextcloud-archive