From 588396359abc21e46fcf71f42b7f395a5472dadb Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 4 Apr 2023 03:12:57 +0200 Subject: [PATCH] Fix broken chromium extension script --- scripts/Common/Config/Chromium/install-extension.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Common/Config/Chromium/install-extension.sh b/scripts/Common/Config/Chromium/install-extension.sh index d28b57ef..b0894bdb 100755 --- a/scripts/Common/Config/Chromium/install-extension.sh +++ b/scripts/Common/Config/Chromium/install-extension.sh @@ -9,6 +9,7 @@ EXTENSION_POLICY_DIR="${EXTENSION_POLICY_DIR}"; if [ ! "$UID" -eq 0 ] then sudo \ + BROWSER_BIN="${BROWSER_BIN}" \ EXTENSION_NAME="${EXTENSION_NAME}" \ UNPACKED_EXTENSION="${UNPACKED_EXTENSION}" \ EXTENSION_DIR="${EXTENSION_DIR}" \ @@ -33,6 +34,7 @@ else sudo -u "$1" "${BROWSER_BIN}" --pack-extension="$UNPACKED_EXTENSION" --pack-extension-key="$keyFile"; # Install extension and preinstall it + mkdir -p "$EXTENSION_DIR"; cp "$extensionFile" "$destination"; chmod -R a+rx "$EXTENSION_DIR"; chmod -R u+w "$EXTENSION_DIR";