This commit is contained in:
mwiegand 2021-06-30 23:45:06 +02:00
parent d2f6d28137
commit dee39170f3
4 changed files with 32 additions and 4 deletions

View file

@ -0,0 +1 @@
https://help.nextcloud.com/t/error-the-files-of-the-app-viewer-were-not-replaced-correctly-after-upgrading/75521/4

View file

@ -0,0 +1,16 @@
{
"shippedApps": [],
"alwaysEnabled": [
"files",
"cloud_federation_api",
"dav",
"federatedfilesharing",
"lookup_server_connector",
"provisioning_api",
"oauth2",
"settings",
"twofactor_backupcodes",
"viewer",
"workflowengine"
]
}

View file

@ -4,23 +4,25 @@ from shlex import quote
from os.path import join from os.path import join
from mako.template import Template from mako.template import Template
print(f"v{node.metadata.get('nextcloud/version')}")
directories = { directories = {
'/opt/nextcloud': {}, '/opt/nextcloud': {},
'/etc/nextcloud': { '/etc/nextcloud': {
'owner': 'www-data', 'owner': 'www-data',
'group': 'www-data',
}, },
'/var/lib/nextcloud': { '/var/lib/nextcloud': {
'owner': 'www-data', 'owner': 'www-data',
'group': 'www-data',
'mode': '770', 'mode': '770',
}, },
'/var/lib/nextcloud/.apps': { '/var/lib/nextcloud/.apps': {
'owner': 'www-data', 'owner': 'www-data',
'group': 'www-data',
}, },
'/var/lib/nextcloud/.cache': { '/var/lib/nextcloud/.cache': {
'owner': 'www-data', 'owner': 'www-data',
'group': 'www-data',
}, },
} }
@ -45,6 +47,7 @@ symlinks = {
'/opt/nextcloud/config': { '/opt/nextcloud/config': {
'target': '/etc/nextcloud', 'target': '/etc/nextcloud',
'owner': 'www-data', 'owner': 'www-data',
'group': 'www-data',
'needs': [ 'needs': [
'git_deploy:/opt/nextcloud', 'git_deploy:/opt/nextcloud',
], ],
@ -52,6 +55,7 @@ symlinks = {
'/opt/nextcloud/userapps': { '/opt/nextcloud/userapps': {
'target': '/var/lib/nextcloud/.apps', 'target': '/var/lib/nextcloud/.apps',
'owner': 'www-data', 'owner': 'www-data',
'group': 'www-data',
'needs': [ 'needs': [
'git_deploy:/opt/nextcloud', 'git_deploy:/opt/nextcloud',
], ],
@ -59,9 +63,15 @@ symlinks = {
} }
files = { files = {
# '/opt/nextcloud/core/shipped.json': {
# 'needs': [
# 'git_deploy:/opt/nextcloud',
# ],
# },
'/etc/nextcloud/CAN_INSTALL': { '/etc/nextcloud/CAN_INSTALL': {
'content': '', 'content': '',
'owner': 'www-data', 'owner': 'www-data',
'group': 'www-data',
'mode': '640', 'mode': '640',
'needs': [ 'needs': [
'directory:/etc/nextcloud', 'directory:/etc/nextcloud',
@ -70,6 +80,7 @@ files = {
'/etc/nextcloud/managed.config.php': { '/etc/nextcloud/managed.config.php': {
'content_type': 'mako', 'content_type': 'mako',
'owner': 'www-data', 'owner': 'www-data',
'group': 'www-data',
'mode': '640', 'mode': '640',
'context': { 'context': {
'db_password': node.metadata.get('postgresql/roles/nextcloud/password'), 'db_password': node.metadata.get('postgresql/roles/nextcloud/password'),
@ -116,7 +127,7 @@ actions['install_nextcloud'] = {
actions['upgrade_nextcloud'] = { actions['upgrade_nextcloud'] = {
'command': repo.libs.nextcloud.occ('upgrade'), 'command': repo.libs.nextcloud.occ('upgrade'),
'unless': repo.libs.nextcloud.occ('status') + f' | grep -q "versionstring: {node.metadata.get("nextcloud/version")}"', 'unless': "! " + repo.libs.nextcloud.occ('status') + ' | grep -q "Nextcloud or one of the apps require upgrade"',
'needs': [ 'needs': [
'action:install_nextcloud', 'action:install_nextcloud',
], ],

View file

@ -18,7 +18,7 @@
'metadata': { 'metadata': {
'nextcloud': { 'nextcloud': {
'domain': 'cloud.sublimity.de', 'domain': 'cloud.sublimity.de',
'version': '21.0.0', 'version': '20.0.10',
}, },
'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae', 'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae',
'bind': { 'bind': {