fix: 解决 ssh2 安装失败的问题 (#1496)

This commit is contained in:
zhengkunwang 2024-05-30 17:38:51 +08:00 committed by GitHub
parent f338ca4ae1
commit 08cec60af6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
19 changed files with 59 additions and 110 deletions

View File

@ -115,7 +115,7 @@
"value": "curl"
},
{
"label": "sg11",
"label": "sg15",
"value": "sourceguardian"
}
],

View File

@ -115,7 +115,7 @@
"value": "curl"
},
{
"label": "sg11",
"label": "sg15",
"value": "sourceguardian"
}
],

View File

@ -115,7 +115,7 @@
"value": "curl"
},
{
"label": "sg11",
"label": "sg15",
"value": "sourceguardian"
}
],

View File

@ -119,7 +119,7 @@
"value": "curl"
},
{
"label": "sg11",
"label": "sg15",
"value": "sourceguardian"
},
{

View File

@ -85,8 +85,14 @@ fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
apk add eudev-libs
install-php-extensions sourceguardian
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
echo "---------- Install ssh2 ----------"
install-php-extensions ssh2
fi
# end
@ -395,18 +401,6 @@ if [[ -z "${EXTENSIONS##*,igbinary,*}" ]]; then
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
isPhpVersionGreaterOrEqual 7 0
if [[ "$?" = "1" ]]; then
echo "---------- Install ssh2 ----------"
printf "\n" | apk add libssh2-dev
pecl install ssh2-1.1.2
docker-php-ext-enable ssh2
else
echo "ssh2 requires PHP >= 7.0.0, installed version is ${PHP_VERSION}"
fi
fi
if [[ -z "${EXTENSIONS##*,protobuf,*}" ]]; then
isPhpVersionGreaterOrEqual 7 0
if [[ "$?" = "1" ]]; then

View File

@ -119,7 +119,7 @@
"value": "curl"
},
{
"label": "sg11",
"label": "sg15",
"value": "sourceguardian"
},
{

View File

@ -85,8 +85,14 @@ fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
apk add eudev-libs
install-php-extensions sourceguardian
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
echo "---------- Install ssh2 ----------"
install-php-extensions ssh2
fi
# end
@ -395,18 +401,6 @@ if [[ -z "${EXTENSIONS##*,igbinary,*}" ]]; then
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
isPhpVersionGreaterOrEqual 7 0
if [[ "$?" = "1" ]]; then
echo "---------- Install ssh2 ----------"
printf "\n" | apk add libssh2-dev
pecl install ssh2-1.1.2
docker-php-ext-enable ssh2
else
echo "ssh2 requires PHP >= 7.0.0, installed version is ${PHP_VERSION}"
fi
fi
if [[ -z "${EXTENSIONS##*,protobuf,*}" ]]; then
isPhpVersionGreaterOrEqual 7 0
if [[ "$?" = "1" ]]; then

View File

@ -119,7 +119,7 @@
"value": "curl"
},
{
"label": "sg11",
"label": "sg15",
"value": "sourceguardian"
},
{

View File

@ -85,8 +85,14 @@ fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
apk add eudev-libs
install-php-extensions sourceguardian
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
echo "---------- Install ssh2 ----------"
install-php-extensions ssh2
fi
# end
@ -395,18 +401,6 @@ if [[ -z "${EXTENSIONS##*,igbinary,*}" ]]; then
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
isPhpVersionGreaterOrEqual 7 0
if [[ "$?" = "1" ]]; then
echo "---------- Install ssh2 ----------"
printf "\n" | apk add libssh2-dev
pecl install ssh2-1.1.2
docker-php-ext-enable ssh2
else
echo "ssh2 requires PHP >= 7.0.0, installed version is ${PHP_VERSION}"
fi
fi
if [[ -z "${EXTENSIONS##*,protobuf,*}" ]]; then
isPhpVersionGreaterOrEqual 7 0
if [[ "$?" = "1" ]]; then

View File

@ -119,7 +119,7 @@
"value": "curl"
},
{
"label": "sg11",
"label": "sg15",
"value": "sourceguardian"
},
{

View File

@ -85,8 +85,14 @@ fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
apk add eudev-libs
install-php-extensions sourceguardian
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
echo "---------- Install ssh2 ----------"
install-php-extensions ssh2
fi
# end
@ -395,18 +401,6 @@ if [[ -z "${EXTENSIONS##*,igbinary,*}" ]]; then
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
isPhpVersionGreaterOrEqual 7 0
if [[ "$?" = "1" ]]; then
echo "---------- Install ssh2 ----------"
printf "\n" | apk add libssh2-dev
pecl install ssh2-1.1.2
docker-php-ext-enable ssh2
else
echo "ssh2 requires PHP >= 7.0.0, installed version is ${PHP_VERSION}"
fi
fi
if [[ -z "${EXTENSIONS##*,protobuf,*}" ]]; then
isPhpVersionGreaterOrEqual 7 0
if [[ "$?" = "1" ]]; then

View File

@ -119,7 +119,7 @@
"value": "curl"
},
{
"label": "sg11",
"label": "sg15",
"value": "sourceguardian"
},
{

View File

@ -85,8 +85,14 @@ fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
apk add eudev-libs
install-php-extensions sourceguardian
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
echo "---------- Install ssh2 ----------"
install-php-extensions ssh2
fi
# end
@ -395,18 +401,6 @@ if [[ -z "${EXTENSIONS##*,igbinary,*}" ]]; then
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
isPhpVersionGreaterOrEqual 7 0
if [[ "$?" = "1" ]]; then
echo "---------- Install ssh2 ----------"
printf "\n" | apk add libssh2-dev
pecl install ssh2-1.1.2
docker-php-ext-enable ssh2
else
echo "ssh2 requires PHP >= 7.0.0, installed version is ${PHP_VERSION}"
fi
fi
if [[ -z "${EXTENSIONS##*,protobuf,*}" ]]; then
isPhpVersionGreaterOrEqual 7 0
if [[ "$?" = "1" ]]; then

View File

@ -119,7 +119,7 @@
"value": "curl"
},
{
"label": "sg11",
"label": "sg15",
"value": "sourceguardian"
},
{

View File

@ -79,6 +79,7 @@ fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
apk add eudev-libs
install-php-extensions sourceguardian
fi
@ -86,6 +87,11 @@ if [[ -z "${EXTENSIONS##*,memcached,*}" ]]; then
echo "---------- Install memcached ----------"
install-php-extensions memcached
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
echo "---------- Install ssh2 ----------"
install-php-extensions ssh2
fi
# end
@ -395,19 +401,6 @@ if [[ -z "${EXTENSIONS##*,igbinary,*}" ]]; then
docker-php-ext-enable igbinary
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
isPhpVersionGreaterOrEqual 8 0
if [[ "$?" = "1" ]]; then
echo "---------- Install ssh2 ----------"
printf "\n" | apk add libssh2-dev
pecl install ssh2-1.1.2
docker-php-ext-enable ssh2
else
echo "ssh2 requires PHP >= 8.0.0, installed version is ${PHP_VERSION}"
fi
fi
if [[ -z "${EXTENSIONS##*,protobuf,*}" ]]; then
isPhpVersionGreaterOrEqual 8 0
if [[ "$?" = "1" ]]; then

View File

@ -119,7 +119,7 @@
"value": "curl"
},
{
"label": "sg11",
"label": "sg15",
"value": "sourceguardian"
},
{

View File

@ -79,6 +79,7 @@ fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
apk add eudev-libs
install-php-extensions sourceguardian
fi
@ -86,6 +87,11 @@ if [[ -z "${EXTENSIONS##*,memcached,*}" ]]; then
echo "---------- Install memcached ----------"
install-php-extensions memcached
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
echo "---------- Install ssh2 ----------"
install-php-extensions ssh2
fi
# end
@ -395,19 +401,6 @@ if [[ -z "${EXTENSIONS##*,igbinary,*}" ]]; then
docker-php-ext-enable igbinary
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
isPhpVersionGreaterOrEqual 8 0
if [[ "$?" = "1" ]]; then
echo "---------- Install ssh2 ----------"
printf "\n" | apk add libssh2-dev
pecl install ssh2-1.1.2
docker-php-ext-enable ssh2
else
echo "ssh2 requires PHP >= 8.0.0, installed version is ${PHP_VERSION}"
fi
fi
if [[ -z "${EXTENSIONS##*,protobuf,*}" ]]; then
isPhpVersionGreaterOrEqual 8 0
if [[ "$?" = "1" ]]; then

View File

@ -119,7 +119,7 @@
"value": "curl"
},
{
"label": "sg11",
"label": "sg15",
"value": "sourceguardian"
},
{

View File

@ -79,6 +79,7 @@ fi
if [[ -z "${EXTENSIONS##*,sourceguardian,*}" ]]; then
echo "---------- Install sourceguardian ----------"
apk add eudev-libs
install-php-extensions sourceguardian
fi
@ -86,6 +87,11 @@ if [[ -z "${EXTENSIONS##*,memcached,*}" ]]; then
echo "---------- Install memcached ----------"
install-php-extensions memcached
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
echo "---------- Install ssh2 ----------"
install-php-extensions ssh2
fi
# end
@ -395,19 +401,6 @@ if [[ -z "${EXTENSIONS##*,igbinary,*}" ]]; then
docker-php-ext-enable igbinary
fi
if [[ -z "${EXTENSIONS##*,ssh2,*}" ]]; then
isPhpVersionGreaterOrEqual 8 0
if [[ "$?" = "1" ]]; then
echo "---------- Install ssh2 ----------"
printf "\n" | apk add libssh2-dev
pecl install ssh2-1.1.2
docker-php-ext-enable ssh2
else
echo "ssh2 requires PHP >= 8.0.0, installed version is ${PHP_VERSION}"
fi
fi
if [[ -z "${EXTENSIONS##*,protobuf,*}" ]]; then
isPhpVersionGreaterOrEqual 8 0
if [[ "$?" = "1" ]]; then