Update patch for php v 5.6 installation on debian stretch. Reload systemd bevor enabling.

This commit is contained in:
Christoph 2017-12-02 02:22:02 +01:00
parent aea5a26e49
commit c152afb4da
2 changed files with 1321 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1002,8 +1002,8 @@ fi
echononl "\tApply patch to compile against OpenSSL 1.1.."
if [[ "$os_dist" = "debian" ]] && [[ $os_version -gt 8 ]] && [[ $MAIN_VERSION -lt 7 ]]; then
if [[ -f ${_srcdir}/php-5.6-libssl-1.1-compatibility-20170309.patch ]] ; then
patch -d $_builddir -p1 < ${_srcdir}/php-5.6-libssl-1.1-compatibility-20170309.patch > $tmp_err_msg 2>&1
if [[ -f ${_srcdir}/PHP-5.6.31-OpenSSL-1.1.0-compatibility-20170801.patch ]] ; then
patch -d $_builddir -p1 < ${_srcdir}/PHP-5.6.31-OpenSSL-1.1.0-compatibility-20170801.patch > $tmp_err_msg 2>&1
if [[ $? -eq 0 ]]; then
echo_ok
else
@ -1012,7 +1012,7 @@ if [[ "$os_dist" = "debian" ]] && [[ $os_version -gt 8 ]] && [[ $MAIN_VERSION -
fi
else
echo_failed
fatal "Can't find patchfile '${_srcdir}/php-5.6-libssl-1.1-compatibility-20170309.patch'"
fatal "Can't find patchfile '${_srcdir}/PHP-5.6.31-OpenSSL-1.1.0-compatibility-20170801.patch'"
fi
else
echo_skipped
@ -1451,6 +1451,15 @@ if $WITH_PHP_FPM_SUPPORT ; then
fi
echononl "\tReload systemd.."
systemctl daemon-reload > /dev/null 2>&1
if [ "$?" = "0" ]; then
echo_ok
else
echo_failed
error "Reloading systemd.. failed!"
fi
echononl "\tEnable Service \"php-${MAJOR_VERSION}-fpm.service\".."
systemctl enable "php-${MAJOR_VERSION}-fpm.service" > /dev/null 2>&1
if [ "$?" = "0" ]; then