paulbsd-salt/states/nextcloud/config.sls

18 lines
631 B
Plaintext

---
{%- from "nextcloud/map.jinja" import nextcloud with context %}
{%- set _ = nextcloud.config.update({"version": salt['nextcloud.get_version'](nextcloud.install_dir + "/nextcloud/version.php")}) %}
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
nextcloud-upgrade:
cmd.run:
- name: php {{ nextcloud.install_dir }}/nextcloud/occ upgrade
- runas: {{ nextcloud.user }}
- onchanges:
- archive: nextcloud-archive