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