1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

nextcloud installed detection

This commit is contained in:
George Hunt 2017-06-20 15:25:07 -07:00 committed by georgejhunt
parent e3abe6cce0
commit 144bb15603

View file

@ -31,8 +31,8 @@
shell: >
sudo -u {{ apache_user }} php
'{{ nextcloud_prefix }}/nextcloud/occ' status |
grep installed | wc | cut -d' ' -f1
register: returned_count
grep installed: | cut -d' ' -f5
register: returned
- name: Run nextcloud initial install wizard
shell: >
@ -44,7 +44,7 @@
--database-pass "{{ nextcloud_dbpassword }}"
--admin-user "root"
--admin-pass "{{ mysql_root_password }}"
when: nextcloud_enabled and returned_count == "0"
when: nextcloud_enabled and returned.stdout == "false"
- name: Determine if nextcloud user exists already
shell: >