Skip to content

Commit 9b9a1c2

Browse files
committed
run only when env is set
1 parent d3ee633 commit 9b9a1c2

File tree

1 file changed

+1
-1
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-device-perms

1 file changed

+1
-1
lines changed

root/etc/s6-overlay/s6-rc.d/init-device-perms/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/with-contenv bash
22
# shellcheck shell=bash
33

4-
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
4+
if [[ -z ${LSIO_NON_ROOT_USER} ]] && [[ -n ${ATTACHED_DEVICES_PERMS} ]]; then
55
FILES=$(find ${ATTACHED_DEVICES_PERMS} -print 2>/dev/null)
66

77
for i in ${FILES}; do

0 commit comments

Comments
 (0)