Compare commits

..

2 commits

Author SHA1 Message Date
mwiegand
f82fa22be8 cronological order 2022-02-23 18:12:35 +01:00
mwiegand
e4084956a2 no json: error prone 2022-02-23 18:11:12 +01:00

View file

@ -80,15 +80,6 @@ files = {
'directory:/etc/nextcloud',
],
},
'/opt/nextcloud/rescan': {
'owner': 'www-data',
'group': 'www-data',
'mode': '550',
'needs': [
'directory:/opt/nextcloud',
'action:extract_nextcloud',
],
},
}
# SETUP
@ -106,7 +97,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',
@ -141,3 +132,15 @@ actions['nextcloud_add_missing_inidces'] = {
f'action:extract_nextcloud',
],
}
# RESCAN
files['/opt/nextcloud/rescan'] = {
'owner': 'www-data',
'group': 'www-data',
'mode': '550',
'needs': [
'directory:/opt/nextcloud',
'action:extract_nextcloud',
],
}