Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix Linux Polkit mount option check

Neeraj Guptac630bd9a26c3
diff --git a/docs/docs/auth/troubleshooting/linux-system-auth.md b/docs/docs/auth/troubleshooting/linux-system-auth.md
index 7942098372..6b6c4e9420 100644
--- a/docs/docs/auth/troubleshooting/linux-system-auth.md
+++ b/docs/docs/auth/troubleshooting/linux-system-auth.md
@@ -47,7 +47,7 @@ if curl -fsSL "$policy_url" -o "$policy" &&
printf "%s %s\n" "$policy_sha256" "$policy" | sha256sum -c -; then
# Use /etc on immutable distros (read-only /usr), /usr/share on traditional ones
- if findmnt -n -o OPTIONS --target /usr/share/polkit-1/actions 2>/dev/null | grep -qw ro; then
+ if findmnt -n -o OPTIONS --target /usr/share/polkit-1/actions 2>/dev/null | tr ',' '\n' | grep -qx ro; then
install_path="/etc/polkit-1/actions/com.ente.auth.policy"
else
install_path="/usr/share/polkit-1/actions/com.ente.auth.policy"