provide writable tmp direcotry [release 5.0.2-2mamba;Thu May 28 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 10:00:39 +01:00
parent 5fce497e25
commit 7b1ef5574d

View File

@ -19,7 +19,7 @@
Name: %{?sitename:%sitename-}phpmyadmin
Version: 5.0.2
Release: 1mamba
Release: 2mamba
Summary: MySQL administration tool
Group: Applications/Databases
Vendor: openmamba
@ -163,9 +163,11 @@ EOF
rm -f %{buildroot}%{installdir}/themes/.gitignore
install -d -m0755 %{buildroot}%{installdir}/tmp
%post
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
fi
if [ $1 -ge 1 ]; then
@ -208,7 +210,7 @@ rm -f .core .themes
%defattr(-, root, root)
%config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{name}.conf
%config(noreplace) %{installdir}/config.inc.php
%dir %{installdir}
%attr(0755, apache, nobody) %dir %{installdir}/tmp
%dir %{installdir}/themes
%doc LICENSE
#%doc ChangeLog Documentation.txt README
@ -216,6 +218,9 @@ rm -f .core .themes
# scripts/*.sql
%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
- automatic version update by autodist