diff options
author | Huabing Zhao <zhaohuabing@gmail.com> | 2019-04-10 08:33:58 +0000 |
---|---|---|
committer | Huabing Zhao <zhaohuabing@gmail.com> | 2019-04-10 08:42:27 +0000 |
commit | 1db162bfcd9acafa3a19c80e3943f568c9f8874a (patch) | |
tree | ca4987460ffa8a9e6989cbb42cce14d62f89eeaf /openresty-ext/src/assembly/resources | |
parent | 4b2a245470e75932931cb47f97e2835ed7cd5778 (diff) |
Run API Gateway as non-root user
Change-Id: Iea0f47a7f425b7c812ee683af496b8a6b96dce13
Issue-ID: MSB-320
Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Diffstat (limited to 'openresty-ext/src/assembly/resources')
-rw-r--r-- | openresty-ext/src/assembly/resources/openresty/run.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/openresty-ext/src/assembly/resources/openresty/run.sh b/openresty-ext/src/assembly/resources/openresty/run.sh index ed2a393..5909046 100644 --- a/openresty-ext/src/assembly/resources/openresty/run.sh +++ b/openresty-ext/src/assembly/resources/openresty/run.sh @@ -20,10 +20,10 @@ HOME=`cd $DIRNAME/nginx; pwd` _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 ======================================== @@ -31,8 +31,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 =========== openresty config info ============================================= @@ -43,5 +43,5 @@ cd $HOME; pwd echo @WORK_DIR@ $HOME echo @C_CMD@ $_NGINXCMD -p $HOME/ -$_NGINXCMD -p $HOME/ +sudo $_NGINXCMD -p $HOME/ |