updated nextcloud state

This commit is contained in:
Paul 2021-10-15 12:09:00 +02:00
parent 7c9f355bba
commit c8de62ccaf

View File

@ -1,5 +1,6 @@
---
{%- 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
@ -7,3 +8,10 @@ nextcloud-config:
- 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