summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas <dr@jones.dk>2013-11-15 20:29:42 +0100
committerJonas <dr@jones.dk>2013-11-15 20:29:42 +0100
commit824e4410d0b95578ae9a9b0220c80d1bb7c71da1 (patch)
treeea258fed1590bde9c71fb582e2dc81c5e34529a1
parentc1ca74cb08db55d10080a7d4ce1e576d69915115 (diff)
Fix avoid broken if-fi.
-rwxr-xr-xadduser.local3
1 files changed, 1 insertions, 2 deletions
diff --git a/adduser.local b/adduser.local
index 9f1d127..c5416b7 100755
--- a/adduser.local
+++ b/adduser.local
@@ -184,8 +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"
- if [ -f /etc/local/webusers.conf ]; then
- . /etc/local/webusers.conf
+ [ -f /etc/local/webusers.conf ] && . /etc/local/webusers.conf
if [ -n "$WEBUSERS_BINDMOUNT" ]; then
echo >&2 "Adding subdirs below /var/www ..."