From 8d40555502ed0bdb5debaddbcaafa35f0aaa27bf Mon Sep 17 00:00:00 2001 From: Teddysun Date: Fri, 5 Jan 2018 10:14:21 +0900 Subject: [PATCH] Update comments Fixed get PHP 5.6 latest version Signed-off-by: Teddysun --- include/upgrade_php.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/upgrade_php.sh b/include/upgrade_php.sh index 34a7607..afb7d17 100644 --- a/include/upgrade_php.sh +++ b/include/upgrade_php.sh @@ -30,7 +30,7 @@ upgrade_php(){ local installed_php=`${php_location}/bin/php -r 'echo PHP_VERSION;' 2>/dev/null` if [ "${php_version}" == "5.6" ]; then - latest_php='5.6.32' + latest_php=$(curl -s http://php.net/downloads.php | awk '/Changelog/{print $2}' | grep '5.6') elif [ "${php_version}" == "7.0" ]; then latest_php=$(curl -s http://php.net/downloads.php | awk '/Changelog/{print $2}' | grep '7.0') elif [ "${php_version}" == "7.1" ]; then