From 8f3a9421bd4138e18f9c1ece6cb6285e962ead84 Mon Sep 17 00:00:00 2001 From: Chingis S Date: Sat, 22 Aug 2026 21:30:53 +0300 Subject: [PATCH] Rename the init action variable out of the reserved namespace WODBY_* is reserved for platform-owned values, and service manifests may only define names in it when a privileged user publishes into the Wodby organizations. Importing such a manifest anywhere else is rejected, which made the init action unusable outside those orgs. WODBY2_ is not reserved, so WODBY2_SERVICE_INIT_ACTION can be declared by any service manifest and imported anywhere. --- 8/init/90_wodby_init.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/8/init/90_wodby_init.sh b/8/init/90_wodby_init.sh index 85542171..c1a26c76 100755 --- a/8/init/90_wodby_init.sh +++ b/8/init/90_wodby_init.sh @@ -14,13 +14,13 @@ fi # and idempotent, so when the image was built with the init action already # applied this is a no-op. # -# WODBY_INIT_ACTION names a target in /usr/local/bin/actions.mk and is provided -# as an environment variable rather than baked into the image, so the init -# action is applied no matter which Dockerfile produced the image. +# WODBY2_SERVICE_INIT_ACTION names a target in /usr/local/bin/actions.mk. It is +# provided as an environment variable rather than baked into the image, so the +# init action is applied no matter which Dockerfile produced the image. # # This file is sourced by exec_init_scripts, not executed in a subshell. Do not # use "exit" here, it would terminate the entrypoint and stop the container. -if [[ -n "${WODBY_INIT_ACTION}" ]]; then - echo "Applying init action: ${WODBY_INIT_ACTION}" - make "${WODBY_INIT_ACTION}" -f /usr/local/bin/actions.mk +if [[ -n "${WODBY2_SERVICE_INIT_ACTION}" ]]; then + echo "Applying init action: ${WODBY2_SERVICE_INIT_ACTION}" + make "${WODBY2_SERVICE_INIT_ACTION}" -f /usr/local/bin/actions.mk fi