From 1024a4f0b2cb03b1f45e3bb473ef3f78dd1791d5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 3 May 2022 14:57:39 +0200 Subject: [kiosk-chromium] Needs to run in bash --- .../data/opt/openslx/pam/hooks/session-open.d/10-chromium-urlfilter | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/modules/kiosk-chromium') diff --git a/core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/10-chromium-urlfilter b/core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/10-chromium-urlfilter index 7fa65639..00aa9556 100644 --- a/core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/10-chromium-urlfilter +++ b/core/modules/kiosk-chromium/data/opt/openslx/pam/hooks/session-open.d/10-chromium-urlfilter @@ -1,6 +1,8 @@ #!/bin/bash #^ SOURCED, actually running in ash +# Protip: Comment out while editing, but DO NOT FORGET TO RE-ENABLE +bash <<"EOF" format_urls() { local url scheme host path chost arr readarray -t -d ' ' arr < <( printf "%s" "$@" ) @@ -88,5 +90,6 @@ if [ "${PAM_SERVICE//autologin/}" != "$PAM_SERVICE" ] && [ "$PAM_TTY" = ":0" ]; # autologin of some sort main fi +EOF true -- cgit v1.2.3-55-g7522