tweaked existingvirtualhosts option
This commit is contained in:
parent
90a9d0b23c
commit
649bf372bd
|
@ -50,7 +50,6 @@ username=$(stat -c '%U' /srv/www/$virtualhost)
|
|||
# check for any remaining virtualhosts before deleting user
|
||||
# same check is done in vhost-user-del.sh
|
||||
# but doing this here avoids generating any errors
|
||||
existingvirtualhosts=false
|
||||
vhost::set-virtualhostArray
|
||||
for v in "${virtualhostArray[@]}"
|
||||
do
|
||||
|
@ -59,6 +58,6 @@ do
|
|||
fi
|
||||
done
|
||||
|
||||
if [[ $existingvirtualhosts = false ]]; then
|
||||
if [ -n "$existingvirtualhosts" ]; then
|
||||
/usr/local/bin/vhost-user-del.sh $username
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user