Skip to content

Commit 8780b3d

Browse files
soulbirdsoulbird
andauthored
fix: find openresty dependencies by codename (#220)
Co-authored-by: soulbird <[email protected]>
1 parent b225640 commit 8780b3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package-apisix-base.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ openresty_zlib_version="1.2.12-1"
1717
openresty_openssl111_version="1.1.1n-1"
1818
openresty_pcre_version="8.45-1"
1919
if [ "$PACKAGE_TYPE" == "deb" ]; then
20-
pkg_suffix="focal1"
20+
codename=`cat /etc/os-release |grep VERSION_CODENAME|awk -F '=' '{print $2}'`
21+
pkg_suffix="${codename}1"
2122
openresty_zlib_version="$openresty_zlib_version~$pkg_suffix"
2223
openresty_openssl111_version="$openresty_openssl111_version~$pkg_suffix"
2324
openresty_pcre_version="$openresty_pcre_version~$pkg_suffix"

0 commit comments

Comments
 (0)