aboutsummaryrefslogtreecommitdiffstats
path: root/msb-core/openresty-ext/src/assembly/resources/openresty/run.sh
diff options
context:
space:
mode:
authorYonggangWang <wang.yonggang131@zte.com.cn>2017-04-18 14:28:09 +0800
committerYonggangWang <wang.yonggang131@zte.com.cn>2017-04-18 15:04:57 +0800
commit1b0fac8132c379acf3bf82d7b951ce9c0b25ba23 (patch)
treeca771f0375cd78b2a141ddc6f3eb1c98c0422e93 /msb-core/openresty-ext/src/assembly/resources/openresty/run.sh
parent88117d09c52a6e6b3f5b299f90c8dbf0cf59d39a (diff)
Use openresty binary from OPEN-O Nexus to build
Issue-id: OCS-173 Modify Maven Scripts to Download openresty Binary from OPEN-O Nexus for MSB Building Change-Id: I1977253373f1fd063b2ae3827110bb77676dfd2f Signed-off-by: YonggangWang <wang.yonggang131@zte.com.cn>
Diffstat (limited to 'msb-core/openresty-ext/src/assembly/resources/openresty/run.sh')
-rw-r--r--msb-core/openresty-ext/src/assembly/resources/openresty/run.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/msb-core/openresty-ext/src/assembly/resources/openresty/run.sh b/msb-core/openresty-ext/src/assembly/resources/openresty/run.sh
index cdf2d92..f5226b5 100644
--- a/msb-core/openresty-ext/src/assembly/resources/openresty/run.sh
+++ b/msb-core/openresty-ext/src/assembly/resources/openresty/run.sh
@@ -20,10 +20,16 @@
DIRNAME=`dirname $0`
HOME=`cd $DIRNAME/nginx; pwd`
+LUAJIT_HOME=`cd $DIRNAME/luajit; pwd`
_NGINXCMD="$HOME/sbin/nginx"
+echo =========== prepare the symbolic links ========================================
+ln -s -f $_NGINXCMD $DIRNAME/bin/openresty
+ln -s -f $LUAJIT_HOME/bin/luajit2.1.0-beta2 $LUAJIT_HOME/bin/luajit
+ln -s -f $LUAJIT_HOME/lib/libluajit-5.1.so.2.1.0 $LUAJIT_HOME/lib/libluajit-5.1.so.2
+ln -s -f $LUAJIT_HOME/lib/libluajit-5.1.so.2.1.0 $LUAJIT_HOME/lib/libluajit-5.1.so
+echo ================================================================================
echo =========== create symbolic link for libluajit-5.1.so.2 ========================================
-LUAJIT_HOME=`cd $DIRNAME/luajit; pwd`
LUAJIT_FILENAME="$LUAJIT_HOME/lib/libluajit-5.1.so.2"
LN_TARGET_FILE='/lib/libluajit-5.1.so.2'
LN_TARGET_FILE64='/lib64/libluajit-5.1.so.2'