aboutsummaryrefslogtreecommitdiffstats
path: root/nginx-ext-consul/src
diff options
context:
space:
mode:
authorHuabing Zhao <zhaohuabing@gmail.com>2019-04-10 09:09:19 +0000
committerHuabing Zhao <zhaohuabing@gmail.com>2019-04-10 09:10:15 +0000
commit6aa307c93bb05223f8b0c797b6425041a298955e (patch)
treeb50a7b535a8fa2bda7af3e86489a007a8ade555d /nginx-ext-consul/src
parentb9bf181a6ece4f03735e75c6af350690cef24787 (diff)
Run discovery as non-root user
Change-Id: I97ef4a92f991cd6d72a38b293ec14620050cad9e Issue-ID: MSB-321 Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Diffstat (limited to 'nginx-ext-consul/src')
-rw-r--r--nginx-ext-consul/src/assembly/resources/run.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/nginx-ext-consul/src/assembly/resources/run.sh b/nginx-ext-consul/src/assembly/resources/run.sh
index a47201e..a6f04b5 100644
--- a/nginx-ext-consul/src/assembly/resources/run.sh
+++ b/nginx-ext-consul/src/assembly/resources/run.sh
@@ -21,10 +21,10 @@ _NGINXCMD="$HOME/sbin/nginx"
LUAJIT_HOME=`cd $DIRNAME/luajit; pwd`
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
+sudo ln -s -f $_NGINXCMD $DIRNAME/bin/openresty
+sudo ln -s -f $LUAJIT_HOME/bin/luajit2.1.0-beta2 $LUAJIT_HOME/bin/luajit
+sudo ln -s -f $LUAJIT_HOME/lib/libluajit-5.1.so.2.1.0 $LUAJIT_HOME/lib/libluajit-5.1.so.2
+sudo 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 ========================================
@@ -32,8 +32,8 @@ 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'
-ln -s -f $LUAJIT_FILENAME $LN_TARGET_FILE
-ln -s -f $LUAJIT_FILENAME $LN_TARGET_FILE64
+sudo ln -s -f $LUAJIT_FILENAME $LN_TARGET_FILE
+sudo ln -s -f $LUAJIT_FILENAME $LN_TARGET_FILE64
echo ===============================================================================
echo HOME=$HOME
echo _NGINXCMD=$_NGINXCMD