This repository was archived by the owner on Jan 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed
Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1111# - Rootless (user service, recommended): /run/user/$(id -u)/podman/podman.sock
1212#
1313# Auto-detection priority:
14- # 1. Path specified here (if set)
15- # 2. /run/user/$(id -u)/podman/podman.sock (detected dynamically)
14+ # 1. Path specified here (if set and accessible )
15+ # 2. /run/user/$(id -u)/podman/podman.sock (detected dynamically for current user )
1616# 3. /run/podman/podman.sock (system-wide socket)
1717#
18- # You can leave this commented out to use automatic detection, or specify a custom path:
18+ # RECOMMENDED: Leave this commented out to use automatic detection for your user:
19+ # PODMAN_SOCKET_PATH=/run/user/$(id -u)/podman/podman.sock
20+ #
21+ # Only uncomment and set a custom path if you have a non-standard setup:
1922# PODMAN_SOCKET_PATH=/run/podman/podman.sock
20- PODMAN_SOCKET_PATH=/run/user/1000/podman/podman.sock
2123
2224# Zigbee Adapter Path
2325
Original file line number Diff line number Diff line change @@ -101,13 +101,20 @@ detect_podman_socket() {
101101 continue
102102 fi
103103
104- # Check if the socket is readable
104+ # Check if the socket is readable (basic permission check)
105105 if [ ! -r " $socket_path " ]; then
106106 echo " [SKIP] Socket not readable: ${socket_path} "
107107 continue
108108 fi
109109
110- # Socket exists, is a socket type, and is readable - this is our winner!
110+ # More robust permission check: try to stat the socket
111+ # This catches cases where -r passes but actual access fails
112+ if ! stat " $socket_path " > /dev/null 2>&1 ; then
113+ echo " [SKIP] Socket not accessible (permission denied): ${socket_path} "
114+ continue
115+ fi
116+
117+ # Socket exists, is a socket type, and is accessible - this is our winner!
111118 echo " [SUCCESS] Found valid podman socket: ${socket_path} "
112119 echo " "
113120
You can’t perform that action at this time.
0 commit comments