Skip to content

Commit

Permalink
Merge pull request #5 from codestoryai/set-permissions
Browse files Browse the repository at this point in the history
Update script to set sidecar binary issues
  • Loading branch information
ghostwriternr authored Nov 6, 2024
2 parents f5bdb72 + 703a40d commit ef61c5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion linux/linux_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,14 @@ EOF
xdg-mime default aide-url-handler.desktop x-scheme-handler/aide
}

# Set permissions for chrome-sandbox
# Set permissions for chrome-sandbox and the sidecar binary
set_permissions() {
sudo chown root "${PKGDIR}/chrome-sandbox"
sudo chmod 4755 "${PKGDIR}/chrome-sandbox"
sudo chmod 755 "${PKGDIR}/resources/app/extensions/codestory/sidecar_bin/target/release/webserver"
sudo chmod 755 "${PKGDIR}/resources/app/extensions/codestory/sidecar_bin/sidecar/qdrant/qdrant_mac"
sudo chmod 755 "${PKGDIR}/resources/app/extensions/codestory/sidecar_bin/sidecar/onnxruntime/libonnxruntime.dylib"
sudo chmod 755 "${PKGDIR}/resources/app/extensions/codestory/sidecar_bin/sidecar/onnxruntime/libonnxruntime.so"
}

# Set up shell completions
Expand Down

0 comments on commit ef61c5a

Please sign in to comment.