Skip to content

Commit db9d058

Browse files
committed
refactor(base): make ampstart less script for debugging
1 parent 8f5dffe commit db9d058

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/base/ampstart.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
set -e -o pipefail
3+
#set -e -o pipefail
44

55
echo "[Info] AMPStart for Docker"
66
ARCH=$(uname -m)
@@ -61,12 +61,11 @@ fi
6161

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

0 commit comments

Comments
 (0)