diff options
author | Jonas <dr@jones.dk> | 2013-11-16 12:28:26 +0100 |
---|---|---|
committer | Jonas <dr@jones.dk> | 2013-11-16 12:28:26 +0100 |
commit | 8befce43d6780e2ef614d29fa7e05fdaaab8187a (patch) | |
tree | 60223ab285c46d3e465302505b11c1eb22152268 | |
parent | 824e4410d0b95578ae9a9b0220c80d1bb7c71da1 (diff) |
Fix avoid failure reading config files.
-rwxr-xr-x | adduser.local | 4 |
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 ..." |