Skip to content

Commit 99e2d8d

Browse files
authored
Merge pull request #90 from shivammathur/develop
Fix PHP-FPM in PHP and add a flag to skip checksum check if it fails
2 parents 1c258f3 + 929f9cd commit 99e2d8d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/scripts/linux.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ existing_version=$(php-config --version | cut -c 1-3)
2020
version=$1
2121
status="Switched to PHP$version"
2222
step_log "Setup PHP and Composer"
23+
sudo mkdir -p /var/run
24+
sudo mkdir -p /run/php
2325
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
2426
if [ "$existing_version" != "$1" ]; then
2527
if [ ! -e "/usr/bin/php$1" ]; then
@@ -41,7 +43,6 @@ fi
4143
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
4244
ext_dir=$(php -i | grep "extension_dir => /usr" | sed -e "s|.*=> s*||")
4345
sudo chmod 777 "$ini_file"
44-
sudo mkdir -p /run/php
4546
add_log "$tick" "PHP" "$status"
4647
if [ "$2" = "true" ]; then
4748
if [ "$1" != "7.4" ]; then

src/scripts/win32.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ catch {
5353
try {
5454
Update-PhpCAInfo -Path $php_dir -Source Curl
5555
} catch {
56+
Update-PhpCAInfo -Path $php_dir -Source Curl -SkipChecksumCheck
5657
}
5758
}
5859
if ([Version]$installed.Version -ge '7.4') {

0 commit comments

Comments
 (0)