SHA256
1
0
forked from pool/nextcloud

Accepting request 765396 from home:ecsos:server

Update to 18.0.0
Can now install in Tumbleweed again.
But today I have some problems when I update nextcloud. So I have insert in spec one line to repair dB before update.
Can someone test it before I will accept and push it to Tumbleweed, please?

OBS-URL: https://build.opensuse.org/request/show/765396
OBS-URL: https://build.opensuse.org/package/show/server:php:applications/nextcloud?expand=0&rev=97
This commit is contained in:
Eric Schirra 2020-01-18 17:55:02 +00:00 committed by Git OBS Bridge
parent 9ad539c1fe
commit 81f1a952da
4 changed files with 19 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f32596ffc057ef88a5e92a71016fc8685f57f518bfd8f97d1d9b4ae73d553de3
size 65475747

3
nextcloud-18.0.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:194095a5586d84040bc455f77b8aa6c80f9a6a6dd713c9aebdad046713d4267b
size 85867628

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Jan 17 18:37:04 UTC 2020 - ecsos@opensuse.org
- Update to 18.0.0
No changelog from upstream at this time.
- Add "occ maintenance:repair" during package update to fix possible (db) errors.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Dec 19 14:59:58 UTC 2019 - ecsos@opensuse.org Thu Dec 19 14:59:58 UTC 2019 - ecsos@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package nextcloud # spec file for package nextcloud
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -49,7 +49,7 @@
%endif %endif
Name: nextcloud Name: nextcloud
Version: 17.0.2 Version: 18.0.0
Release: 0 Release: 0
Summary: File hosting service Summary: File hosting service
License: AGPL-3.0-only License: AGPL-3.0-only
@ -91,8 +91,8 @@ Requires: php-posix
Requires: php-zip Requires: php-zip
# #
%if 0%{?fedora_version} || 0%{?rhel} || 0%{?rhel_version} || 0%{?centos_version} %if 0%{?fedora_version} || 0%{?rhel} || 0%{?rhel_version} || 0%{?centos_version}
Requires: php <= 7.3.0 Requires: php < 7.5.0
Requires: php >= 7.0.0 Requires: php >= 7.2.0
Requires: php-process Requires: php-process
Requires: php-xml Requires: php-xml
# #
@ -101,8 +101,8 @@ Recommends: sqlite
# #
%if 0%{?suse_version} %if 0%{?suse_version}
Requires: apache2 Requires: apache2
Requires: mod_php_any < 7.4.0 Requires: mod_php_any < 7.5.0
Requires: mod_php_any >= 7.0.0 Requires: mod_php_any >= 7.2.0
Requires: php-ctype Requires: php-ctype
Requires: php-curl Requires: php-curl
# SUSE does not include the fileinfo module in php-common. # SUSE does not include the fileinfo module in php-common.
@ -279,6 +279,8 @@ if [ -s %{statedir}/apache_stopped_during_nextcloud_install ]; then
fi fi
if [ -s %{statedir}/occ_maintenance_mode_during_nextcloud_install ]; then if [ -s %{statedir}/occ_maintenance_mode_during_nextcloud_install ]; then
echo "%{name}: occ maintenance:repair (fix possible errors)"
su %{oc_user} -s /bin/sh -c "cd %{oc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:repair" || true
echo "%{name}: occ upgrade" echo "%{name}: occ upgrade"
su %{oc_user} -s /bin/sh -c "cd %{oc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ upgrade" || true su %{oc_user} -s /bin/sh -c "cd %{oc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ upgrade" || true
echo "%{name}: occ maintenance:mode --off" echo "%{name}: occ maintenance:mode --off"