Accepting request 904436 from server:php:applications
OBS-URL: https://build.opensuse.org/request/show/904436 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nextcloud?expand=0&rev=60
This commit is contained in:
commit
85d2de108f
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:8adcd175c7a70c33332586fa9ce36d03ba02d1df5d4c334d1210201d3fb953ee
|
|
||||||
size 129433656
|
|
3
nextcloud-22.0.0.tar.bz2
Normal file
3
nextcloud-22.0.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3911d3754c37aca7c9b5f3b2b37513c0f2b5bb979af00816c1117b1eedbc5d7a
|
||||||
|
size 144386509
|
@ -1,3 +1,30 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 6 19:58:39 UTC 2021 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Fix some scriptlet and their output text.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 6 14:22:09 UTC 2021 - Michael Ströder <michael@stroeder.com>
|
||||||
|
|
||||||
|
- Update to 22.0.0
|
||||||
|
- User-defined groups with Circles that makes it easier to manage teams
|
||||||
|
where you can share files or assign tasks to circles, or create chat
|
||||||
|
rooms for a circle
|
||||||
|
- Integrated chat and task management where you can simply share a deck
|
||||||
|
card into a chat room or turn a chat message into a task
|
||||||
|
- Easy approval workflow, where an administrator can define a new
|
||||||
|
approval flow in the settings and users can, on a document, request
|
||||||
|
approval
|
||||||
|
- Getting your document signatures easy with integrated PDF signing with
|
||||||
|
DocuSign, EIDEasy, and LibreSign
|
||||||
|
- Integrated knowledge management Nextcloud puts knowledge available to
|
||||||
|
everyone at a moments' notice, providing easy search, sharing, and
|
||||||
|
portable access
|
||||||
|
- Groupware improvements bringing a trash bin feature in Calendar,
|
||||||
|
resource booking to facilitate the handling of resources in
|
||||||
|
organizations. Nextcloud Mail features improved threading, email tagging,
|
||||||
|
and support for Sieve filtering
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 1 18:34:13 UTC 2021 - ecsos <ecsos@opensuse.org>
|
Thu Jul 1 18:34:13 UTC 2021 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
@ -36,18 +36,18 @@
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define nc_user %{apache_user}
|
%define nc_user %{apache_user}
|
||||||
%define nc_dir %{apache_myserverroot}/%{name}
|
%define nc_dir %{apache_myserverroot}/%{name}
|
||||||
%define ocphp_bin /usr/bin
|
%define ocphp_bin /usr/bin
|
||||||
|
|
||||||
%if 0%{?rhel} == 600 || 0%{?rhel_version} == 600 || 0%{?centos_version} == 600
|
%if 0%{?rhel} == 600 || 0%{?rhel_version} == 600 || 0%{?centos_version} == 600
|
||||||
%define statedir /var/run
|
%define statedir /var/run
|
||||||
%else
|
%else
|
||||||
%define statedir /run
|
%define statedir /run
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: nextcloud
|
Name: nextcloud
|
||||||
Version: 21.0.3
|
Version: 22.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: File hosting service
|
Summary: File hosting service
|
||||||
License: AGPL-3.0-only
|
License: AGPL-3.0-only
|
||||||
@ -208,6 +208,7 @@ ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-cron
|
|||||||
|
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre %{name}-cron.timer %{name}-cron.service
|
%service_add_pre %{name}-cron.timer %{name}-cron.service
|
||||||
|
|
||||||
# avoid fatal php errors, while we are changing files
|
# avoid fatal php errors, while we are changing files
|
||||||
# https://github.com/nextcloud
|
# https://github.com/nextcloud
|
||||||
#
|
#
|
||||||
@ -215,35 +216,30 @@ ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-cron
|
|||||||
# If the first argument to pre is 1, the RPM operation is an initial installation. If the argument is 2,
|
# If the first argument to pre is 1, the RPM operation is an initial installation. If the argument is 2,
|
||||||
# the operation is an upgrade from an existing version to a new one.
|
# the operation is an upgrade from an existing version to a new one.
|
||||||
if [ $1 -gt 1 -a ! -s %{statedir}/apache_stopped_during_nextcloud_install ]; then
|
if [ $1 -gt 1 -a ! -s %{statedir}/apache_stopped_during_nextcloud_install ]; then
|
||||||
echo "%{name} update: Checking for running Apache"
|
echo "o %{name} pre-install: Checking for running Apache"
|
||||||
# FIXME: this above should make it idempotent -- a requirement with openSUSE.
|
# FIXME: this above should make it idempotent -- a requirement with openSUSE.
|
||||||
# it does not work.
|
# it does not work.
|
||||||
%if 0%{?suse_version} && 0
|
%if 0%{?suse_version} && 0
|
||||||
%if 0%{?suse_version} <= 1110
|
|
||||||
rcapache2 status | grep running > %{statedir}/apache_stopped_during_nextcloud_install
|
|
||||||
rcapache2 stop
|
|
||||||
%else
|
|
||||||
service apache2 status | grep running > %{statedir}/apache_stopped_during_nextcloud_install
|
service apache2 status | grep running > %{statedir}/apache_stopped_during_nextcloud_install
|
||||||
service apache2 stop
|
service apache2 stop
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
||||||
service httpd status | grep running > %{statedir}/apache_stopped_during_nextcloud_install
|
service httpd status | grep running > %{statedir}/apache_stopped_during_nextcloud_install
|
||||||
service httpd stop
|
service httpd stop
|
||||||
%endif
|
%endif
|
||||||
fi
|
fi
|
||||||
if [ -s %{statedir}/apache_stopped_during_nextcloud_install ]; then
|
if [ -s %{statedir}/apache_stopped_during_nextcloud_install ]; then
|
||||||
echo "%{name} pre-install: Stopping Apache"
|
echo "o %{name} pre-install: Stopping Apache"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
echo "%{name}-server: First install starting"
|
echo "o %{name} pre-install: First install starting"
|
||||||
else
|
else
|
||||||
echo "%{name}-server: Upgrade starting ..."
|
echo "o %{name} pre-install: Upgrade starting ..."
|
||||||
fi
|
fi
|
||||||
# https://github.com/nextcloud
|
# https://github.com/nextcloud
|
||||||
if [ -x %{ocphp_bin}/php -a -f %{nc_dir}/occ ]; then
|
if [ -x %{ocphp_bin}/php -a -f %{nc_dir}/occ ]; then
|
||||||
echo "%{name}: occ maintenance:mode --on"
|
echo "o %{name} pre-install: occ maintenance:mode --on"
|
||||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mode --on" || true
|
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mode --on" || true
|
||||||
echo yes > %{statedir}/occ_maintenance_mode_during_nextcloud_install
|
echo yes > %{statedir}/occ_maintenance_mode_during_nextcloud_install
|
||||||
fi
|
fi
|
||||||
@ -262,15 +258,11 @@ a2enmod php5
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -s %{statedir}/apache_stopped_during_nextcloud_install ]; then
|
if [ -s %{statedir}/apache_stopped_during_nextcloud_install ]; then
|
||||||
echo "%{name} post-install: Restarting Apache"
|
echo "o %{name} post-install: Restarting Apache"
|
||||||
## If we stopped apache in pre section, we now should restart. -- but *ONLY* then!
|
## If we stopped apache in pre section, we now should restart. -- but *ONLY* then!
|
||||||
## Maybe delegate that task to occ upgrade? They also need to handle this, somehow.
|
## Maybe delegate that task to occ upgrade? They also need to handle this, somehow.
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%if 0%{?suse_version} <= 1310
|
service apache2 start
|
||||||
rcapache2 start
|
|
||||||
%else
|
|
||||||
rcapache2 restart apache2.service
|
|
||||||
%endif
|
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
||||||
service httpd start
|
service httpd start
|
||||||
@ -278,18 +270,18 @@ 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)"
|
echo "o %{name} post-install: occ maintenance:repair (fix possible errors)"
|
||||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:repair" || true
|
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:repair" || true
|
||||||
echo "%{name}: occ db:add-missing-* (add missing db things)"
|
echo "o %{name} post-install: occ db:add-missing-* (add missing db things)"
|
||||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mimetype:update-db" || true
|
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mimetype:update-db" || true
|
||||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ db:add-missing-columns" || true
|
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ db:add-missing-columns" || true
|
||||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ db:add-missing-indices" || true
|
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ db:add-missing-indices" || true
|
||||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ db:add-missing-primary-keys" || true
|
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ db:add-missing-primary-keys" || true
|
||||||
echo "%{name}: occ update apps"
|
echo "o %{name} post-install: occ update apps"
|
||||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ app:update --all" || true
|
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ app:update --all" || true
|
||||||
echo "%{name}: occ upgrade"
|
echo "o %{name} post-install: occ upgrade"
|
||||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ upgrade" || true
|
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ upgrade" || true
|
||||||
echo "%{name}: occ maintenance:mode --off"
|
echo "o %{name} post-install: occ maintenance:mode --off"
|
||||||
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mode --off" || true
|
su %{nc_user} -s /bin/sh -c "cd %{nc_dir}; PATH=%{ocphp_bin}:$PATH php ./occ maintenance:mode --off" || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -297,9 +289,9 @@ rm -f %{statedir}/apache_stopped_during_nextcloud_install
|
|||||||
rm -f %{statedir}/occ_maintenance_mode_during_nextcloud_install
|
rm -f %{statedir}/occ_maintenance_mode_during_nextcloud_install
|
||||||
|
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
echo "%{name}-server: First install complete"
|
echo "o %{name} post-install: First install complete"
|
||||||
else
|
else
|
||||||
echo "%{name}-server: Upgrade complete"
|
echo "o %{name} post-install: Upgrade complete"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
|
Loading…
Reference in New Issue
Block a user