fix db update on upgrade and remove .htaccess in images dir as a workaround for Apache error [release 1.24.1-2mamba;Tue Jan 27 2015]
This commit is contained in:
parent
6d8b3a1625
commit
17d3a93a9b
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
Name: %{?sitename:%sitename-}mediawiki%{?lang:-%lang}
|
Name: %{?sitename:%sitename-}mediawiki%{?lang:-%lang}
|
||||||
Version: 1.24.1
|
Version: 1.24.1
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: A collaborative editing software that runs Wikipedia and other projects
|
Summary: A collaborative editing software that runs Wikipedia and other projects
|
||||||
Group: Applications/Web
|
Group: Applications/Web
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -97,6 +97,9 @@ install %{SOURCE4} %{buildroot}%{installdir}/includes/PasswordHash.php
|
|||||||
|
|
||||||
tar -xzf %{SOURCE5} -C %{buildroot}%{installdir}/extensions
|
tar -xzf %{SOURCE5} -C %{buildroot}%{installdir}/extensions
|
||||||
|
|
||||||
|
# FIXME: quick workaround for Apache error on images directory due to RewriteEngine on
|
||||||
|
rm -f %{buildroot}%{installdir}/images/.htaccess
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
@ -105,8 +108,8 @@ if [ $1 -ge 1 ]; then
|
|||||||
service httpd condrestart
|
service httpd condrestart
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# update (AdminSettings.php have to contain database password)
|
# update (LocalSettings.php have to contain database password)
|
||||||
if [ $1 -gt 1 ] && [ -e %{installdir}/AdminSettings.php ]; then
|
if [ $1 -gt 1 ] && [ -e %{installdir}/LocalSettings.php ]; then
|
||||||
/usr/bin/php %{installdir}/maintenance/update.php --quick || true
|
/usr/bin/php %{installdir}/maintenance/update.php --quick || true
|
||||||
fi
|
fi
|
||||||
:
|
:
|
||||||
@ -158,6 +161,9 @@ fi
|
|||||||
%dir %{installdir}/skins/openmamba/*
|
%dir %{installdir}/skins/openmamba/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 27 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.24.1-2mamba
|
||||||
|
- fix db update on upgrade and remove .htaccess in images dir as a workaround for Apache error
|
||||||
|
|
||||||
* Thu Dec 18 2014 Automatic Build System <autodist@mambasoft.it> 1.24.1-1mamba
|
* Thu Dec 18 2014 Automatic Build System <autodist@mambasoft.it> 1.24.1-1mamba
|
||||||
- automatic update by autodist
|
- automatic update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user