Lines 11-17
Link Here
|
11 |
if [ $1 = "start" ]; then |
11 |
if [ $1 = "start" ]; then |
12 |
local user |
12 |
local user |
13 |
for user in $DISPLAYS; do |
13 |
for user in $DISPLAYS; do |
14 |
if eval [ ! -f "~${user%%:*}/.vnc/passwd" ]; then |
14 |
if runuser -l "${user%%:*}" -c "[ ! -f ~/.vnc/passwd ]"; then |
15 |
eerror "There are no passwords defined for user ${user%%:*}." |
15 |
eerror "There are no passwords defined for user ${user%%:*}." |
16 |
return 1 |
16 |
return 1 |
17 |
elif [ -e "/tmp/.X11-unix/X${user##*:}" ]; then |
17 |
elif [ -e "/tmp/.X11-unix/X${user##*:}" ]; then |