no json: error prone

This commit is contained in:
mwiegand 2022-02-23 18:11:12 +01:00
parent 60d30e9df0
commit e4084956a2

View file

@ -106,7 +106,7 @@ actions['install_nextcloud'] = {
admin_pass=node.metadata.get('nextcloud/admin_pass'),
data_dir='/var/lib/nextcloud',
),
'unless': repo.libs.nextcloud.occ('status', output='json') + ' | jq -r .installed | grep -q "^true$"',
'unless': repo.libs.nextcloud.occ('status') + ' | grep -q "installed: true"',
'needs': [
'directory:/etc/nextcloud',
'directory:/opt/nextcloud',