client: lib_gen: generate shared path layout
If path does not exist prior to bind-mounting, path will be owned by root (and unwritable by DOCKER_FINANCE_USER).
This commit is contained in:
@@ -484,6 +484,16 @@ function lib_gen::__gen_client()
|
|||||||
#
|
#
|
||||||
|
|
||||||
lib_gen::__gen_plugins
|
lib_gen::__gen_plugins
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generate shared path layout
|
||||||
|
#
|
||||||
|
|
||||||
|
# TODO: consider supporting for dev-tools
|
||||||
|
[ -z "$global_platform" ] && lib_utils::die_fatal
|
||||||
|
if [ "$global_platform" != "dev-tools" ]; then
|
||||||
|
lib_gen::__gen_shared
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Custom plugins layout to drop-in custom plugins
|
# Custom plugins layout to drop-in custom plugins
|
||||||
@@ -511,6 +521,16 @@ function lib_gen::__gen_plugins()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Shared path layout to drop-in shared files
|
||||||
|
function lib_gen::__gen_shared()
|
||||||
|
{
|
||||||
|
lib_utils::print_debug "Generating shared path"
|
||||||
|
[ -z "$DOCKER_FINANCE_CLIENT_SHARED" ] && lib_utils::die_fatal
|
||||||
|
if [ ! -d "$DOCKER_FINANCE_CLIENT_SHARED" ]; then
|
||||||
|
mkdir -p "$DOCKER_FINANCE_CLIENT_SHARED" || lib_utils::die_fatal
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function lib_gen::__gen_container()
|
function lib_gen::__gen_container()
|
||||||
{
|
{
|
||||||
lib_utils::print_debug "Generating container"
|
lib_utils::print_debug "Generating container"
|
||||||
|
|||||||
Reference in New Issue
Block a user