provide writable tmp direcotry [release 5.0.2-2mamba;Thu May 28 2020]
This commit is contained in:
parent
5fce497e25
commit
7b1ef5574d
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
Name: %{?sitename:%sitename-}phpmyadmin
|
Name: %{?sitename:%sitename-}phpmyadmin
|
||||||
Version: 5.0.2
|
Version: 5.0.2
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: MySQL administration tool
|
Summary: MySQL administration tool
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -163,9 +163,11 @@ EOF
|
|||||||
|
|
||||||
rm -f %{buildroot}%{installdir}/themes/.gitignore
|
rm -f %{buildroot}%{installdir}/themes/.gitignore
|
||||||
|
|
||||||
|
install -d -m0755 %{buildroot}%{installdir}/tmp
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
password=`mkpasswd -s 0`
|
password=`mkpasswd -s 0 -l 32`
|
||||||
sed -i "s|\(\$cfg\['blowfish_secret'\] = \)''|\1'$password'|" %{installdir}/config.inc.php
|
sed -i "s|\(\$cfg\['blowfish_secret'\] = \)''|\1'$password'|" %{installdir}/config.inc.php
|
||||||
fi
|
fi
|
||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
@ -208,7 +210,7 @@ rm -f .core .themes
|
|||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{name}.conf
|
%config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{name}.conf
|
||||||
%config(noreplace) %{installdir}/config.inc.php
|
%config(noreplace) %{installdir}/config.inc.php
|
||||||
%dir %{installdir}
|
%attr(0755, apache, nobody) %dir %{installdir}/tmp
|
||||||
%dir %{installdir}/themes
|
%dir %{installdir}/themes
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
#%doc ChangeLog Documentation.txt README
|
#%doc ChangeLog Documentation.txt README
|
||||||
@ -216,6 +218,9 @@ rm -f .core .themes
|
|||||||
# scripts/*.sql
|
# scripts/*.sql
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.2-2mamba
|
||||||
|
- provide writable tmp direcotry
|
||||||
|
|
||||||
* Sat Mar 21 2020 Automatic Build System <autodist@mambasoft.it> 5.0.2-1mamba
|
* Sat Mar 21 2020 Automatic Build System <autodist@mambasoft.it> 5.0.2-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user