File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ echo " [Info] AMPStart for Docker - v22.08.1"
4+
35if [ -z " ${AMPUSERID} " ]; then
4- echo " This docker image cannot be used directly by itself - it must be started by ampinstmgr"
6+ echo " [Info] This docker image cannot be used directly by itself - it must be started by ampinstmgr"
57 exit 100
68fi
79
810# Check if the AMP user already exists
911getent passwd amp & > /dev/null
1012
1113if [ " $? " == " 0" ]; then
12- echo " AMP user already exists, continuing..."
14+ echo " [Info] AMP user already exists, continuing..."
1315else
14- useradd -m -d /home/amp -s /bin/bash -c " AMP Process User" -u $AMPUSERID amp & > /dev/null
16+ echo " [Info] Performing first-time container setup..."
17+ useradd -m -d /home/amp -s /bin/bash -c " AMP Process User" -u $AMPUSERID -g $AMPGROUPID amp & > /dev/null
1518 touch /home/amp/.gitconfig
1619 chown -R amp:amp /home/amp 2> /dev/null
1720 usermod -aG tty amp
21+ chmod +x /AMP/AMP_Linux_x86_64
22+ echo " [Info] Container setup complete."
1823fi
1924
2025ARGS=$@
21- exec su -l -m -c " cd /AMP; HOME=/home/amp /AMP/AMP_Linux_x86_64 ${ARGS} ; exit $? " -- amp
26+ exec su -l -c " ampinstmgr --sync-certs" -- amp
27+ exec su -l -c " cd /AMP; HOME=/home/amp /AMP/AMP_Linux_x86_64 ${ARGS} ; exit $? " -- amp
2228exit $?
You can’t perform that action at this time.
0 commit comments