Skip to content

Commit 8f5dffe

Browse files
committed
fix: further ampstart variation
1 parent 3a313d0 commit 8f5dffe

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/base/ampstart.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ fi
6161

6262
# Handoff
6363
echo "[Info] Starting AMP..."
64+
ARGS="$@"
6465
exec su -l -s /bin/bash \
6566
-w AMPHOSTPLATFORM,AMP_CONTAINER,AMPMEMORYLIMIT,AMPSWAPLIMIT,AMPCONTAINERCPUS,AMP_CONTAINER_HOST_NETWORK,AMP_BIN,LANG,LANGUAGE,LC_ALL \
66-
amp -c '
67-
export LD_LIBRARY_PATH="/opt/cubecoders/amp:/AMP"
67+
amp -c "
68+
export LD_LIBRARY_PATH='/opt/cubecoders/amp:/AMP'
6869
/opt/cubecoders/amp/ampinstmgr --sync-certs
6970
cd /AMP
70-
exec "${AMP_BIN}" "$@"
71-
' -- _ "$@"
71+
exec ${AMP_BIN} ${ARGS}
72+
"

0 commit comments

Comments
 (0)