From 8befce43d6780e2ef614d29fa7e05fdaaab8187a Mon Sep 17 00:00:00 2001 From: Jonas Date: Sat, 16 Nov 2013 12:28:26 +0100 Subject: Fix avoid failure reading config files. --- adduser.local | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adduser.local b/adduser.local index c5416b7..9a93007 100755 --- a/adduser.local +++ b/adduser.local @@ -40,7 +40,7 @@ add2list() { /bin/echo "$1" | /usr/sbin/add_members -w y -a y -r - "$2"; } # Ignore non-human accounts silently [ "$NEWUID" -ge "$FIRST_UID" -a "$NEWUID" -le "$LAST_UID" ] || exit 0 -[ -f /etc/local/users.conf ] && . /etc/local/users.conf +[ ! -r /etc/local/users.conf ] || . /etc/local/users.conf # resolve account profiles case "$NEWUSERNAME" in @@ -184,7 +184,7 @@ if [ -n "$profile_web" ] && [ -d /var/www ]; then install -d -o "$NEWUID" -g "$NEWGID" "$webroot" "$cgiroot" install -d -o "$NEWUID" -g "$NEWGID" -m 0750 "$dataroot" - [ -f /etc/local/webusers.conf ] && . /etc/local/webusers.conf + [ ! -r /etc/local/webusers.conf ] || . /etc/local/webusers.conf if [ -n "$WEBUSERS_BINDMOUNT" ]; then echo >&2 "Adding subdirs below /var/www ..." -- cgit v1.2.3