diff --git a/plugins/php-apt/versions/common/sg11.sh b/plugins/php-apt/versions/common/sg11.sh index d2f98c6f0..a0ad40cee 100644 --- a/plugins/php-apt/versions/common/sg11.sh +++ b/plugins/php-apt/versions/common/sg11.sh @@ -6,7 +6,6 @@ curPath=`pwd` rootPath=$(dirname "$curPath") rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath") -rootPath=$(dirname "$rootPath") serverPath=$(dirname "$rootPath") sourcePath=${serverPath}/source/php @@ -19,7 +18,8 @@ LIBV=0 sysName=`uname` actionType=$1 version=$2 -SG_VER=${version:0:1}.${version:1:2} +# SG_VER=${version:0:1}.${version:1:2} +SG_VER=${version} extVer=`bash $curPath/lib.sh $version` extFile=/usr/lib/php/${extVer}/${LIBNAME}.so @@ -34,6 +34,10 @@ SORT_LIBNAME="10-${LIBNAME}" Install_lib() { + bash ${rootPath}/scripts/getos.sh + OSNAME=`cat ${rootPath}/data/osname.pl` + + echo "${OSNAME}:${VERSION_ID}" DEFAULT_OSNAME=linux-x86_64 SUFFIX_NAME=lin