diff --git a/continuousintegration/docker/ctafrontend/cc7/rc.local.shared b/continuousintegration/docker/ctafrontend/cc7/opt/run/bin/rc.local.shared
similarity index 100%
rename from continuousintegration/docker/ctafrontend/cc7/rc.local.shared
rename to continuousintegration/docker/ctafrontend/cc7/opt/run/bin/rc.local.shared
diff --git a/continuousintegration/docker/ctafrontend/cc7/rc.local b/continuousintegration/docker/ctafrontend/cc7/rc.local
index eac2654b46a3852dcf00e0f7f348e3645725fee2..33f81407306e603eabd87e9cb65d8466ce7bfda3 100644
--- a/continuousintegration/docker/ctafrontend/cc7/rc.local
+++ b/continuousintegration/docker/ctafrontend/cc7/rc.local
@@ -18,4 +18,7 @@ fi
 printenv > /tmp/rc.local
 
 # Let the next step take over
-exec /shared/rc.local
+## we can override the default by providing content in the shared folder
+test -e /shared/rc.local && exec /shared/rc.local
+
+exec /opt/run/bin/rc.local.shared