1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +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: > shell: >
sudo -u {{ apache_user }} php sudo -u {{ apache_user }} php
'{{ nextcloud_prefix }}/nextcloud/occ' status | '{{ nextcloud_prefix }}/nextcloud/occ' status |
grep installed | wc | cut -d' ' -f1 grep installed: | cut -d' ' -f5
register: returned_count register: returned
- name: Run nextcloud initial install wizard - name: Run nextcloud initial install wizard
shell: > shell: >
@ -44,7 +44,7 @@
--database-pass "{{ nextcloud_dbpassword }}" --database-pass "{{ nextcloud_dbpassword }}"
--admin-user "root" --admin-user "root"
--admin-pass "{{ mysql_root_password }}" --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 - name: Determine if nextcloud user exists already
shell: > shell: >