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"
This commit is contained in:
@@ -224,6 +224,9 @@ install_talkkonnect_with_config() {
|
|||||||
rm -rf "$tk_src"
|
rm -rf "$tk_src"
|
||||||
git clone https://github.com/talkkonnect/talkkonnect.git "$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)..."
|
echo "Building (this takes 5-10 minutes)..."
|
||||||
|
|
||||||
# Build as kiosk user with proper environment
|
# Build as kiosk user with proper environment
|
||||||
|
|||||||
Reference in New Issue
Block a user