File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,17 @@ echo "[Info] AMPStart for Docker"
66ARCH=$( uname -m)
77
88# Context check
9- [ -z " ${AMPUSERID} " ] && { echo " [Error] This docker image cannot be used directly by itself - it must be started by ampinstmgr" ; exit 100; }
9+ [[ -z " ${AMPUSERID} " ] ] && { echo " [Error] This docker image cannot be used directly by itself - it must be started by ampinstmgr" ; exit 100; }
1010
1111# Create /etc/machine-id (addresses Proton/dbus issues)
1212mkdir -p /var/lib/dbus
1313rm -f /etc/machine-id /var/lib/dbus/machine-id
1414dbus-uuidgen --ensure=/etc/machine-id
1515ln -s /etc/machine-id /var/lib/dbus/machine-id
1616
17+ # Create /tmp/.X11-unix (for Xvfb etc)
18+ install -d -o root -g root -m 1777 /tmp/.X11-unix
19+
1720# Set up amp user and group
1821: " ${AMPUSERID:? AMPUSERID not set} "
1922: " ${AMPGROUPID:? AMPGROUPID not set} "
Original file line number Diff line number Diff line change @@ -6,14 +6,17 @@ echo "[Info] AMPStart for Docker"
66ARCH=$( uname -m)
77
88# Context check
9- [ -z " ${AMPUSERID} " ] && { echo " [Error] This docker image cannot be used directly by itself - it must be started by ampinstmgr" ; exit 100; }
9+ [[ -z " ${AMPUSERID} " ] ] && { echo " [Error] This docker image cannot be used directly by itself - it must be started by ampinstmgr" ; exit 100; }
1010
1111# Create /etc/machine-id (addresses Proton/dbus issues)
1212mkdir -p /var/lib/dbus
1313rm -f /etc/machine-id /var/lib/dbus/machine-id
1414dbus-uuidgen --ensure=/etc/machine-id
1515ln -s /etc/machine-id /var/lib/dbus/machine-id
1616
17+ # Create /tmp/.X11-unix (for Xvfb etc)
18+ install -d -o root -g root -m 1777 /tmp/.X11-unix
19+
1720# Set up amp user and group
1821: " ${AMPUSERID:? AMPUSERID not set} "
1922: " ${AMPGROUPID:? AMPGROUPID not set} "
You can’t perform that action at this time.
0 commit comments