From 857e48ae945d7084a9894b33b5e0ad1b9610ec51 Mon Sep 17 00:00:00 2001
From: Julien Leduc <julien.leduc@cern.ch>
Date: Tue, 19 Dec 2017 16:28:57 +0100
Subject: [PATCH] including systemd changes in the docker image

---
 .../docker/ctafrontend/cc7/{ => opt/run/bin}/rc.local.shared | 0
 continuousintegration/docker/ctafrontend/cc7/rc.local        | 5 ++++-
 2 files changed, 4 insertions(+), 1 deletion(-)
 rename continuousintegration/docker/ctafrontend/cc7/{ => opt/run/bin}/rc.local.shared (100%)

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 eac2654b46..33f8140730 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
-- 
GitLab