fix ownership of files created during update, to fix addressbook pictures inaccessible after 17.1 update

This commit is contained in:
Ralf Becker 2017-11-16 20:26:11 +01:00
parent ddfe924a62
commit f66ee58eba
2 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,8 @@ then
if [ "$2" ]
then
/usr/share/egroupware/doc/rpm-build/post_install.php 2>&1 | /usr/bin/tee -a $install_log
# fix ownership of files created during update
chown -R www-data /var/lib/egroupware
else
# Debian 9 has no more /etc/lsb-release and gives an error
if test -f /etc/lsb-release && grep -q '^DISTRIB_ID="*Univention"*$' /etc/lsb-release

View File

@ -1,5 +1,5 @@
Name: egroupware-epl
Version: 17.1.20171023
Version: 17.1.20171115
Release:
Summary: EGroupware is a web-based groupware suite written in php
Group: Web/Database
@ -199,6 +199,8 @@ Obsoletes: %{name}-developer_tools
%endif
/bin/date >> %{install_log}
%{post_install} 2>&1 | tee -a %{install_log}
# fix ownership of files created during update
/bin/chown -R %{apache_user} /var/lib/egroupware
echo "EGroupware install log saved to %{install_log}"
%description