pull/267/head
midoks 3 years ago
parent 2979def4dc
commit bfe6429bc2
  1. 4
      plugins/php-yum/install.sh
  2. 2
      plugins/php/versions/common/openssl.sh

@ -10,8 +10,8 @@ serverPath=$(dirname "$rootPath")
install_tmp=${rootPath}/tmp/mw_install.pl install_tmp=${rootPath}/tmp/mw_install.pl
if id www &> /dev/null ;then if id www &> /dev/null ;then
echo "www UID is `id -u www`" echo "www uid is `id -u www`"
echo "www Shell is `grep "^www:" /etc/passwd |cut -d':' -f7 `" echo "www shell is `grep "^www:" /etc/passwd |cut -d':' -f7 `"
else else
groupadd www groupadd www
# useradd -g www -s /sbin/nologin www # useradd -g www -s /sbin/nologin www

@ -85,7 +85,7 @@ Install_lib()
echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini
if [ -f "/etc/ssl/certs/ca-certificates.crt" ];then if [ -f "/etc/ssl/certs/ca-certificates.crt" ];then
echo "openssl.cafile=/etc/ssl/certs/ca-certificates.crt" >> $serverPath/php/$version/etc/php.ini echo "openssl.cafile=/etc/ssl/certs/ca-certificates.crt" >> $serverPath/php/$version/etc/php.ini
elif [ -f "/etc/pki/tls/certs/ca-bundle.crt" ]; elif [ -f "/etc/pki/tls/certs/ca-bundle.crt" ];then
echo "openssl.cafile=/etc/pki/tls/certs/ca-bundle.crt" >> $serverPath/php/$version/etc/php.ini echo "openssl.cafile=/etc/pki/tls/certs/ca-bundle.crt" >> $serverPath/php/$version/etc/php.ini
fi fi
echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini

Loading…
Cancel
Save