Last active
September 19, 2019 10:32
-
-
Save psy0rz/3b0140ec14678355d8a9f098b2c46939 to your computer and use it in GitHub Desktop.
Patch directadmin custom build to use php 5.6.40 with security patches from Microsoft. This one contains all the backported security fixes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- build 2019-09-16 13:30:06.000000000 +0200 | |
+++ build.patched 2019-09-19 12:30:42.454000313 +0200 | |
@@ -11430,6 +11430,20 @@ | |
tar xzf ${FILE} --no-same-owner | |
echo "Done." | |
+ # Use microsoft version instead of vanilla php 5.6.40, so we get all the security backports. edwin@datux.nl | |
+ if [ "${INT_RELEASE}" = "5.6" ]; then | |
+ echo "HACK ms security backports 5.6.40" | |
+ rm PHP-5.6-security-backports | |
+ wget -c 'https://codeload.github.com/microsoft/php-src/zip/PHP-5.6-security-backports' || exit 1 | |
+ unzip PHP-5.6-security-backports || exit 1 | |
+ rm -rf php-5.6.40 || exit 1 | |
+ mv php-src-PHP-5.6-security-backports php-5.6.40|| exit 1 | |
+ pushd php-5.6.40 | |
+ ./buildconf --force | |
+ sed 's/PHP_EXTRA_VERSION=""/PHP_EXTRA_VERSION="_microsoft"/' -i configure | |
+ popd | |
+ fi | |
+ | |
disable_asm_atomic | |
if [ "${CLOUDLINUX_OPT}" = "yes" ]; then |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment