File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ existing_version=$(php-config --version | cut -c 1-3)
20
20
version=$1
21
21
status=" Switched to PHP$version "
22
22
step_log " Setup PHP and Composer"
23
+ sudo mkdir -p /var/run
24
+ sudo mkdir -p /run/php
23
25
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
24
26
if [ " $existing_version " != " $1 " ]; then
25
27
if [ ! -e " /usr/bin/php$1 " ]; then
41
43
ini_file=$( php --ini | grep " Loaded Configuration" | sed -e " s|.*:s*||" | sed " s/ //g" )
42
44
ext_dir=$( php -i | grep " extension_dir => /usr" | sed -e " s|.*=> s*||" )
43
45
sudo chmod 777 " $ini_file "
44
- sudo mkdir -p /run/php
45
46
add_log " $tick " " PHP" " $status "
46
47
if [ " $2 " = " true" ]; then
47
48
if [ " $1 " != " 7.4" ]; then
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ catch {
53
53
try {
54
54
Update-PhpCAInfo - Path $php_dir - Source Curl
55
55
} catch {
56
+ Update-PhpCAInfo - Path $php_dir - Source Curl - SkipChecksumCheck
56
57
}
57
58
}
58
59
if ([Version ]$installed.Version -ge ' 7.4' ) {
You can’t perform that action at this time.
0 commit comments