wip
This commit is contained in:
parent
3a3111f669
commit
589fca4e1d
1 changed files with 12 additions and 3 deletions
|
@ -21,7 +21,7 @@ actions['delete_nextcloud'] = {
|
||||||
'triggered': True,
|
'triggered': True,
|
||||||
}
|
}
|
||||||
actions['extract_nextcloud'] = {
|
actions['extract_nextcloud'] = {
|
||||||
'command': f'tar xfvj /tmp/nextcloud-{version}.tar.bz2 --skip-old-files --strip 1 -C /opt/nextcloud nextcloud',
|
'command': f'tar xfvj /tmp/nextcloud-{version}.tar.bz2 --exclude "^config" --strip 1 -C /opt/nextcloud nextcloud',
|
||||||
'unless': f"""php -r 'include "/opt/nextcloud/version.php"; echo "$OC_VersionString";' | grep -q '^{version}$'""",
|
'unless': f"""php -r 'include "/opt/nextcloud/version.php"; echo "$OC_VersionString";' | grep -q '^{version}$'""",
|
||||||
'preceded_by': [
|
'preceded_by': [
|
||||||
'action:delete_nextcloud',
|
'action:delete_nextcloud',
|
||||||
|
@ -52,6 +52,15 @@ directories['/var/lib/nextcloud/.cache'] = {
|
||||||
'owner': 'www-data',
|
'owner': 'www-data',
|
||||||
'group': 'www-data',
|
'group': 'www-data',
|
||||||
}
|
}
|
||||||
|
files['/etc/nextcloud/CAN_INSTALL'] = {
|
||||||
|
'content': '',
|
||||||
|
'owner': 'www-data',
|
||||||
|
'group': 'www-data',
|
||||||
|
'mode': '640',
|
||||||
|
'needs': [
|
||||||
|
'directory:/etc/nextcloud',
|
||||||
|
],
|
||||||
|
}
|
||||||
files['/etc/nextcloud/managed.config.php'] = {
|
files['/etc/nextcloud/managed.config.php'] = {
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
'owner': 'www-data',
|
'owner': 'www-data',
|
||||||
|
@ -61,8 +70,7 @@ files['/etc/nextcloud/managed.config.php'] = {
|
||||||
'db_password': node.metadata.get('postgresql/roles/nextcloud/password'),
|
'db_password': node.metadata.get('postgresql/roles/nextcloud/password'),
|
||||||
},
|
},
|
||||||
'needs': [
|
'needs': [
|
||||||
'directory:/opt/nextcloud',
|
'directory:/etc/nextcloud',
|
||||||
'action:delete_nextcloud',
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
actions['symlink_/opt/nextcloud/config'] = {
|
actions['symlink_/opt/nextcloud/config'] = {
|
||||||
|
@ -104,6 +112,7 @@ actions['install_nextcloud'] = {
|
||||||
'directory:/var/lib/nextcloud',
|
'directory:/var/lib/nextcloud',
|
||||||
'directory:/var/lib/nextcloud/.apps',
|
'directory:/var/lib/nextcloud/.apps',
|
||||||
'directory:/var/lib/nextcloud/.cache',
|
'directory:/var/lib/nextcloud/.cache',
|
||||||
|
'file:/etc/nextcloud/CAN_INSTALL',
|
||||||
'file:/etc/nextcloud/managed.config.php',
|
'file:/etc/nextcloud/managed.config.php',
|
||||||
'action:extract_nextcloud',
|
'action:extract_nextcloud',
|
||||||
'action:symlink_/opt/nextcloud/userapps',
|
'action:symlink_/opt/nextcloud/userapps',
|
||||||
|
|
Loading…
Reference in a new issue