forked from pool/matomo
Accepting request 650539 from home:ecsos:server
smal changes to build for 42.3 OBS-URL: https://build.opensuse.org/request/show/650539 OBS-URL: https://build.opensuse.org/package/show/network:utilities/matomo?expand=0&rev=15
This commit is contained in:
parent
10c3316671
commit
9dcd9f6993
19
matomo.spec
19
matomo.spec
@ -46,17 +46,16 @@ Source11: %{name}-archive.service
|
||||
Source12: %{name}-archive.timer
|
||||
Source99: %{name}.rpmlintrc
|
||||
BuildArch: noarch
|
||||
Requires(post): shadow
|
||||
Requires(post): user(wwwrun)
|
||||
Requires(post): group(www)
|
||||
#Requires(post): user(wwwrun)
|
||||
#Requires(post): group(www)
|
||||
BuildRequires: apache2-devel
|
||||
BuildRequires: cron
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: logrotate
|
||||
BuildRequires: mariadb
|
||||
BuildRequires: php-json
|
||||
BuildRequires: php-mbstring
|
||||
BuildRequires: php-pdo
|
||||
#BuildRequires: php-json
|
||||
#BuildRequires: php-mbstring
|
||||
#BuildRequires: php-pdo
|
||||
BuildRequires: systemd
|
||||
BuildRequires: unzip
|
||||
Requires: apache2
|
||||
@ -139,11 +138,11 @@ chown -R %{ap_usr}:%{ap_grp} %{ap_serverroot}/%{name}
|
||||
# Update matomo if this is an upgrade $1 == 2
|
||||
echo "matomo: Update matomo:core..."
|
||||
if [ $1 -gt 1 ]; then
|
||||
su wwwrun -s /bin/sh -c "%{_bindir}/php %{ap_serverroot}/%{name}/console config:set 'Tracker.record_statistics="0"'"
|
||||
su wwwrun -s /bin/sh -c "%{_bindir}/php %{ap_serverroot}/%{name}/console config:set 'General.maintenance_mode="1"'"
|
||||
su wwwrun -s /bin/sh -c "%{_bindir}/php %{ap_serverroot}/%{name}/console config:set 'Tracker.record_statistics="0"'" || :
|
||||
su wwwrun -s /bin/sh -c "%{_bindir}/php %{ap_serverroot}/%{name}/console config:set 'General.maintenance_mode="1"'" || :
|
||||
su wwwrun -s /bin/sh -c "%{_bindir}/php %{ap_serverroot}/%{name}/console core:update --yes" || :
|
||||
su wwwrun -s /bin/sh -c "%{_bindir}/php %{ap_serverroot}/%{name}/console config:set 'General.maintenance_mode="0"'"
|
||||
su wwwrun -s /bin/sh -c "%{_bindir}/php %{ap_serverroot}/%{name}/console config:set 'Tracker.record_statistics="1"'"
|
||||
su wwwrun -s /bin/sh -c "%{_bindir}/php %{ap_serverroot}/%{name}/console config:set 'General.maintenance_mode="0"'" || :
|
||||
su wwwrun -s /bin/sh -c "%{_bindir}/php %{ap_serverroot}/%{name}/console config:set 'Tracker.record_statistics="1"'" || :
|
||||
:
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user