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:
parent
e3abe6cce0
commit
144bb15603
1 changed files with 3 additions and 3 deletions
|
@ -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: >
|
||||
|
|
Loading…
Reference in a new issue