Skip to content

Commit 6712417

Browse files
committed
fix: ampstart.sh
1 parent db84bc0 commit 6712417

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

scripts/base/ampstart.sh

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

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

0 commit comments

Comments
 (0)