diff --git a/package-build.sh b/package-build.sh index b0654ee85019..583a4bcd982c 100755 --- a/package-build.sh +++ b/package-build.sh @@ -109,8 +109,6 @@ make $LUA_MAKE make install INSTALL_TOP=$OUT/usr/local cd $OUT -ln -s $OUT/usr/local/bin/lua $OUT/usr/local/bin/lua5.1 - export PATH=$PATH:${OUT}/usr/local/bin export LUA_PATH=${OUT}/usr/local/share/lua/5.1/?.lua @@ -156,7 +154,7 @@ cp $OUT/usr/local/lib/luarocks/rocks/kong/$KONG_VERSION/conf/kong.yml $OUT/etc/k # Make the package post_install_script=$(mktemp -t post_install_script.XXX.sh) -printf "#!/bin/sh\nsudo mkdir -p /etc/kong\nsudo cp /usr/local/lib/luarocks/rocks/kong/$KONG_VERSION/conf/kong.yml /etc/kong/kong.yml" > $post_install_script +printf "#!/bin/sh\nsudo ln -s /usr/local/bin/lua /usr/local/bin/lua5.1\nsudo mkdir -p /etc/kong\nsudo cp /usr/local/lib/luarocks/rocks/kong/$KONG_VERSION/conf/kong.yml /etc/kong/kong.yml" > $post_install_script cd $OUT fpm -a all -f -s dir -t $PACKAGE_TYPE -n "kong" -v ${KONG_VERSION} ${FPM_PARAMS} \ diff --git a/versions.sh b/versions.sh index 51b0ad456236..ac8871887054 100755 --- a/versions.sh +++ b/versions.sh @@ -2,7 +2,7 @@ CASSANDRA_VERSION=2.1.2 # Travis and package builder -LUAROCKS_VERSION=2.2.0 +LUAROCKS_VERSION=2.2.2 OPENRESTY_VERSION=1.7.10.2rc0 # Package builder only