From 7d7a98b96f1b7ba3b5d8b6c6d4d9cbd499246015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simen=20R=C3=B8stvik?= Date: Thu, 17 Nov 2022 10:17:45 +0100 Subject: [PATCH] Map service --- Deployments/firefox.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Deployments/firefox.yaml b/Deployments/firefox.yaml index 8ac1a58..6e58628 100644 --- a/Deployments/firefox.yaml +++ b/Deployments/firefox.yaml @@ -39,9 +39,9 @@ spec: mountPath: /config - name: dshm mountPath: /dev/shm - - mountPath: /custom-cont-init.d + - mountPath: /etc/s6-overlay/s6-rc.d/svc-xrdp-sesman/run + subPath: run name: config - readOnly: true volumes: - name: vol @@ -77,7 +77,12 @@ metadata: name: firefox-edit data: settings: | - #!/usr/bin/with-contenv bash - #shellcheck shell=bash + #! /usr/bin/execlineb -P - sed -i 's/;ListenAddress.*/ListenAddress=127.0.0.1/' /etc/xrdp/sesman.ini + # Redirect stderr to stdout. + fdmove -c 2 1 + + # Notify service manager when xrdp is up + #s6-notifyoncheck -w 500 -c "nc -z localhost 3350" + + /usr/sbin/xrdp-sesman --nodaemon