Update patch for php v 5.6 installation on debian stretch. Reload systemd bevor enabling.
This commit is contained in:
parent
aea5a26e49
commit
c152afb4da
1309
PHP-5.6.31-OpenSSL-1.1.0-compatibility-20170801.patch
Normal file
1309
PHP-5.6.31-OpenSSL-1.1.0-compatibility-20170801.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -1002,8 +1002,8 @@ fi
|
|||||||
|
|
||||||
echononl "\tApply patch to compile against OpenSSL 1.1.."
|
echononl "\tApply patch to compile against OpenSSL 1.1.."
|
||||||
if [[ "$os_dist" = "debian" ]] && [[ $os_version -gt 8 ]] && [[ $MAIN_VERSION -lt 7 ]]; then
|
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
|
if [[ -f ${_srcdir}/PHP-5.6.31-OpenSSL-1.1.0-compatibility-20170801.patch ]] ; then
|
||||||
patch -d $_builddir -p1 < ${_srcdir}/php-5.6-libssl-1.1-compatibility-20170309.patch > $tmp_err_msg 2>&1
|
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
|
if [[ $? -eq 0 ]]; then
|
||||||
echo_ok
|
echo_ok
|
||||||
else
|
else
|
||||||
@ -1012,7 +1012,7 @@ if [[ "$os_dist" = "debian" ]] && [[ $os_version -gt 8 ]] && [[ $MAIN_VERSION -
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo_failed
|
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
|
fi
|
||||||
else
|
else
|
||||||
echo_skipped
|
echo_skipped
|
||||||
@ -1451,6 +1451,15 @@ if $WITH_PHP_FPM_SUPPORT ; then
|
|||||||
fi
|
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\".."
|
echononl "\tEnable Service \"php-${MAJOR_VERSION}-fpm.service\".."
|
||||||
systemctl enable "php-${MAJOR_VERSION}-fpm.service" > /dev/null 2>&1
|
systemctl enable "php-${MAJOR_VERSION}-fpm.service" > /dev/null 2>&1
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user