Accepting request 522311 from home:computersalat:devel:php

fix deps and post step

OBS-URL: https://build.opensuse.org/request/show/522311
OBS-URL: https://build.opensuse.org/package/show/server:php:applications/phpMyAdmin?expand=0&rev=295
This commit is contained in:
Christian Wittmer 2017-09-08 13:03:16 +00:00 committed by Git OBS Bridge
parent 84aea920f5
commit 01b43b209c
2 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Sep 8 12:51:38 UTC 2017 - chris@computersalat.de
- fix recommends
* php5-curl -> php-curl
* php5-zip -> php-zip
- fix post step
* enable correct phpX module
-------------------------------------------------------------------
Fri Aug 25 17:05:32 UTC 2017 - ecsos@opensuse.org

View File

@ -66,8 +66,8 @@ PreReq: coreutils
PreReq: grep
PreReq: pwgen
PreReq: sed
Recommends: php5-curl
Recommends: php5-zip
Recommends: php-curl
Recommends: php-zip
### will be removed with php >= 7.2
## boo#1050980
Suggests: php-mcrypt
@ -169,9 +169,13 @@ sed -i -e "s,@FQDN@,$(cat %{_sysconfdir}/HOSTNAME)," \
-e "s/\\\$cfg\['blowfish_secret'\] = ''/\$cfg['blowfish_secret'] = '`pwgen -s -1 46`'/" %{pma_config}
# enable required apache modules
if [ -x /usr/sbin/a2enmod ]; then
a2enmod -q php5 || a2enmod php5
# get installed php_version (5 or 7)
php_version=$(php -v | grep '(cli)' | awk '{print $2}' | awk -F'.' '{print $1}')
if [[ -n ${php_version} ]]; then
a2enmod -q php${php_version} || a2enmod php${php_version}
a2enmod -q version || a2enmod version
fi
fi
%if 0%{?suse_version} < 1310
%restart_on_update apache2
#%%else