summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xadduser.local4
1 files 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 ..."