mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-06 11:10:27 +00:00
Remove DOCKER_ROOT assignments from entry.sh
These variables are not used anywhere and they don't seem to serve any purpose. Cleaning these assingments as dead code
This commit is contained in:
parent
0bb3f0ad1f
commit
460c3ba0aa
16
entry.sh
16
entry.sh
@ -12,22 +12,6 @@ set -o errexit
|
||||
[ -d /mnt/root/tmp/balena-supervisor ] ||
|
||||
mkdir -p /mnt/root/tmp/balena-supervisor
|
||||
|
||||
# If DOCKER_ROOT isn't set then default it
|
||||
if [ -z "${DOCKER_ROOT}" ]; then
|
||||
DOCKER_ROOT=/mnt/root/var/lib/rce
|
||||
fi
|
||||
|
||||
# Mount the DOCKER_ROOT path equivalent in the container fs
|
||||
DOCKER_LIB_PATH=${DOCKER_ROOT#/mnt/root}
|
||||
|
||||
if [ ! -d "${DOCKER_LIB_PATH}" ]; then
|
||||
ln -s "${DOCKER_ROOT}" "${DOCKER_LIB_PATH}"
|
||||
fi
|
||||
|
||||
if [ -z "$DOCKER_SOCKET" ]; then
|
||||
export DOCKER_SOCKET=/run/docker.sock
|
||||
fi
|
||||
|
||||
export DBUS_SYSTEM_BUS_ADDRESS="unix:path=/mnt/root/run/dbus/system_bus_socket"
|
||||
|
||||
# Include self-signed CAs, should they exist
|
||||
|
Loading…
x
Reference in New Issue
Block a user