From 7b1ef5574d63f706b9d6176627e8312f6d179318 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:00:39 +0100 Subject: [PATCH] provide writable tmp direcotry [release 5.0.2-2mamba;Thu May 28 2020] --- phpmyadmin.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/phpmyadmin.spec b/phpmyadmin.spec index 2b64161..ef8a91e 100644 --- a/phpmyadmin.spec +++ b/phpmyadmin.spec @@ -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 5.0.2-2mamba +- provide writable tmp direcotry + * Sat Mar 21 2020 Automatic Build System 5.0.2-1mamba - automatic version update by autodist