mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Merge pull request #90 from shivammathur/develop
Fix PHP-FPM in PHP and add a flag to skip checksum check if it fails
This commit is contained in:
commit
99e2d8d309
@ -20,6 +20,8 @@ existing_version=$(php-config --version | cut -c 1-3)
|
|||||||
version=$1
|
version=$1
|
||||||
status="Switched to PHP$version"
|
status="Switched to PHP$version"
|
||||||
step_log "Setup PHP and Composer"
|
step_log "Setup PHP and Composer"
|
||||||
|
sudo mkdir -p /var/run
|
||||||
|
sudo mkdir -p /run/php
|
||||||
find /etc/apt/sources.list.d -type f -name 'ondrej-ubuntu-php*.list' -exec sudo DEBIAN_FRONTEND=noninteractive apt-fast update -o Dir::Etc::sourcelist="{}" ';' >/dev/null 2>&1
|
find /etc/apt/sources.list.d -type f -name 'ondrej-ubuntu-php*.list' -exec sudo DEBIAN_FRONTEND=noninteractive apt-fast update -o Dir::Etc::sourcelist="{}" ';' >/dev/null 2>&1
|
||||||
if [ "$existing_version" != "$1" ]; then
|
if [ "$existing_version" != "$1" ]; then
|
||||||
if [ ! -e "/usr/bin/php$1" ]; then
|
if [ ! -e "/usr/bin/php$1" ]; then
|
||||||
@ -41,7 +43,6 @@ fi
|
|||||||
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
|
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
|
||||||
ext_dir=$(php -i | grep "extension_dir => /usr" | sed -e "s|.*=> s*||")
|
ext_dir=$(php -i | grep "extension_dir => /usr" | sed -e "s|.*=> s*||")
|
||||||
sudo chmod 777 "$ini_file"
|
sudo chmod 777 "$ini_file"
|
||||||
sudo mkdir -p /run/php
|
|
||||||
add_log "$tick" "PHP" "$status"
|
add_log "$tick" "PHP" "$status"
|
||||||
if [ "$2" = "true" ]; then
|
if [ "$2" = "true" ]; then
|
||||||
if [ "$1" != "7.4" ]; then
|
if [ "$1" != "7.4" ]; then
|
||||||
|
@ -53,6 +53,7 @@ catch {
|
|||||||
try {
|
try {
|
||||||
Update-PhpCAInfo -Path $php_dir -Source Curl
|
Update-PhpCAInfo -Path $php_dir -Source Curl
|
||||||
} catch {
|
} catch {
|
||||||
|
Update-PhpCAInfo -Path $php_dir -Source Curl -SkipChecksumCheck
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ([Version]$installed.Version -ge '7.4') {
|
if ([Version]$installed.Version -ge '7.4') {
|
||||||
|
Loading…
Reference in New Issue
Block a user