From: Marcin Krol Date: Sat, 14 Apr 2018 21:01:27 +0000 (+0000) Subject: - keep app tmp in appdir, accessible by http:http only X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=381d4379064dd55da51bf78be9f23d4f65a8224a;p=packages%2FphpMyAdmin.git - keep app tmp in appdir, accessible by http:http only --- diff --git a/phpMyAdmin.spec b/phpMyAdmin.spec index e676dab..6c0e2a9 100644 --- a/phpMyAdmin.spec +++ b/phpMyAdmin.spec @@ -89,7 +89,7 @@ find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}} +install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}/tmp} cp -p *.php *.css favicon.ico robots.txt $RPM_BUILD_ROOT%{_appdir} cp -a js libraries locale sql templates themes vendor $RPM_BUILD_ROOT%{_appdir} @@ -137,6 +137,7 @@ rm -rf $RPM_BUILD_ROOT %{_appdir}/sql %{_appdir}/templates %{_appdir}/themes +%dir %attr(770,http,http) %{_appdir}/tmp %{_appdir}/vendor %{_appdir}/*.css %{_appdir}/*.php