summaryrefslogtreecommitdiffstats
path: root/msb-core/openresty-ext/src
diff options
context:
space:
mode:
Diffstat (limited to 'msb-core/openresty-ext/src')
-rw-r--r--msb-core/openresty-ext/src/assembly/resources/openresty/nginx/logs/placeholder.txt0
-rw-r--r--msb-core/openresty-ext/src/assembly/resources/openresty/nginx/temp/placeholder.txt0
-rw-r--r--msb-core/openresty-ext/src/assembly/resources/openresty/run.sh8
3 files changed, 7 insertions, 1 deletions
diff --git a/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/logs/placeholder.txt b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/logs/placeholder.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/logs/placeholder.txt
diff --git a/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/temp/placeholder.txt b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/temp/placeholder.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/msb-core/openresty-ext/src/assembly/resources/openresty/nginx/temp/placeholder.txt
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'