agent-ecosystem/resources/afterInstall.sh
2026-05-21 12:57:29 +03:00

12 lines
295 B
Bash
Executable file

#!/bin/bash
set -e
# Fix chrome-sandbox permissions for SUID sandbox on Linux
# See: https://github.com/electron/electron/issues/17972
SANDBOX_PATH="/opt/${sanitizedProductName}/chrome-sandbox"
if [ -f "$SANDBOX_PATH" ]; then
chown root:root "$SANDBOX_PATH"
chmod 4755 "$SANDBOX_PATH"
fi