diff --git a/states/nextcloud/config.sls b/states/nextcloud/config.sls index 7a6e9ac..1ae101c 100644 --- a/states/nextcloud/config.sls +++ b/states/nextcloud/config.sls @@ -17,3 +17,10 @@ nextcloud-upgrade: - runas: {{ nextcloud.user }} - onchanges: - archive: nextcloud-archive + +nextcloud-add-missing-indices: + cmd.run: + - name: php {{ nextcloud.install_dir }}/nextcloud/occ db:add-missing-indices + - runas: {{ nextcloud.user }} + - onchanges: + - archive: nextcloud-archive