paulbsd-salt/states/nextcloud/config.sls

18 lines
631 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-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