From d16ca7a408292159770765454a8ee26e7aebc7f3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 22 Nov 2025 23:39:37 +0000 Subject: [PATCH] Fix vendor directory permission denied error Added chown after git clone to give kiosk user ownership of the /tmp/talkkonnect-src directory. This allows 'go mod vendor' to successfully create the vendor directory when running as kiosk user. Without this fix, the build would fail with: "go: mkdir /tmp/talkkonnect-src/vendor: permission denied" "Warning: gopus not found in vendor directory" "[ERROR] Binary not executable after build" --- setup_intercom.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup_intercom.sh b/setup_intercom.sh index 4a23e21..ab4369e 100755 --- a/setup_intercom.sh +++ b/setup_intercom.sh @@ -224,6 +224,9 @@ install_talkkonnect_with_config() { rm -rf "$tk_src" git clone https://github.com/talkkonnect/talkkonnect.git "$tk_src" + # Change ownership so kiosk user can write to vendor directory + sudo chown -R "$KIOSK_USER:$KIOSK_USER" "$tk_src" + echo "Building (this takes 5-10 minutes)..." # Build as kiosk user with proper environment