forked from pool/phpMyAdmin
Accepting request 595798 from home:ecsos:server
- fix wrong require /usr/bin/bash to /bin/bash so phpMyAdmin could install - insert missing templates dir in htaccess See https://docs.phpmyadmin.net/de/latest/setup.html#securing-your-phpmyadmin-installation - create tmp dir and insert this in htaccess to fix the errormessage after login OBS-URL: https://build.opensuse.org/request/show/595798 OBS-URL: https://build.opensuse.org/package/show/server:php:applications/phpMyAdmin?expand=0&rev=313
This commit is contained in:
@@ -126,7 +126,7 @@ done
|
||||
|
||||
# set proper shebang
|
||||
sed -i 's/env php/php/' vendor/phpmyadmin/sql-parser/bin/*-query
|
||||
sed -i 's/env bash/bash/' vendor/paragonie/random_compat/*.sh
|
||||
sed -i 's|\/usr\/bin\/env bash|\/bin\/bash|g' vendor/paragonie/random_compat/*.sh
|
||||
|
||||
# permissions
|
||||
find . -type d -exec chmod 755 {} \;
|
||||
@@ -142,6 +142,8 @@ cp -dR *.css *.php *.ico js libraries locale themes templates vendor \
|
||||
# install config to config dir
|
||||
install -D -m0640 %{buildroot}%{ap_docroot}/%{name}/config.sample.inc.php \
|
||||
%{buildroot}%{_sysconfdir}/%{name}/config.inc.php
|
||||
# install TempDir
|
||||
install -d -m0770 %{buildroot}%{ap_docroot}/%{name}/tmp
|
||||
|
||||
# fix libraries/vendor_config.php
|
||||
sed -i -e "s,@docdir@,%{_docdir}/%{name},g" -e "s,@sysconfdir@,%{_sysconfdir}/%{name},g" \
|
||||
@@ -189,6 +191,7 @@ fi
|
||||
%doc LICENSE README RELEASE-DATE*
|
||||
%doc examples doc sql
|
||||
%dir %attr(0750,root,%{ap_grp}) %{_sysconfdir}/%{name}
|
||||
%dir %attr(0770,root,%{ap_grp}) %{ap_docroot}/%{name}/tmp
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/config.inc.php
|
||||
%dir %{ap_docroot}/%{name}
|
||||
%config(noreplace) %{ap_sysconfdir}/conf.d/%{name}.conf
|
||||
|
Reference in New Issue
Block a user