From a388355f04c85f6dfcd13c1538bde1b5f49a1226 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Fri, 9 Aug 2024 09:14:16 +0200 Subject: [PATCH] GHA: Make included oscrc files working from both outside and inside of the container --- behave/container-setup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/behave/container-setup.sh b/behave/container-setup.sh index d01f3213..2e5fe92b 100644 --- a/behave/container-setup.sh +++ b/behave/container-setup.sh @@ -26,8 +26,11 @@ sed -i -E 's!^(\s*)PassengerRuby .*!\1PassengerRuby "/usr/bin/ruby.ruby3.1"!' /e # enable apache SSL server flag sed -i 's!^APACHE_SERVER_FLAGS=.*!APACHE_SERVER_FLAGS="SSL"!' /etc/sysconfig/apache2 -# also listen on the port that is exported to an unprivileged user +# also listen on the ports that are published outside the container +# so the included oscrc files are valid from both outside and inside of the container sed -i 's!^!!' /etc/apache2/vhosts.d/obs.conf +sed -i 's!^!!' /etc/apache2/vhosts.d/obs.conf +sed -i 's!^Listen 82$!Listen 82\nListen 1082\nListen 1443!' /etc/apache2/vhosts.d/obs.conf # enable apache mods