diff --git a/rootfs/usr/local/etc/docker/init.d/01-tor-bridge.sh b/rootfs/usr/local/etc/docker/init.d/01-tor-bridge.sh index 3e5fbec..5f7d65f 100755 --- a/rootfs/usr/local/etc/docker/init.d/01-tor-bridge.sh +++ b/rootfs/usr/local/etc/docker/init.d/01-tor-bridge.sh @@ -201,6 +201,7 @@ __run_precopy() { # Define environment local hostname=${HOSTNAME} # Define actions/commands + [ -d "$DATA_DIR" ] && mkdir -p "$DATA_DIR" # allow custom functions if builtin type -t __run_precopy_local | grep -q 'function'; then __run_precopy_local; fi diff --git a/rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh b/rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh index 0b680d8..cc2bf57 100755 --- a/rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh +++ b/rootfs/usr/local/etc/docker/init.d/02-tor-relay.sh @@ -201,6 +201,7 @@ __run_precopy() { # Define environment local hostname=${HOSTNAME} # Define actions/commands + [ -d "$DATA_DIR" ] && mkdir -p "$DATA_DIR" # allow custom functions if builtin type -t __run_precopy_local | grep -q 'function'; then __run_precopy_local; fi diff --git a/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh b/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh index c0125b5..ea51560 100755 --- a/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh +++ b/rootfs/usr/local/etc/docker/init.d/03-tor-server.sh @@ -201,6 +201,7 @@ __run_precopy() { # Define environment local hostname=${HOSTNAME} # Define actions/commands + [ -d "$DATA_DIR" ] && mkdir -p "$DATA_DIR" # allow custom functions if builtin type -t __run_precopy_local | grep -q 'function'; then __run_precopy_local; fi