more alias macro fixes
This commit is contained in:
parent
4bba0e9cc4
commit
96a60a843e
|
@ -90,12 +90,17 @@ fi
|
||||||
# set username for all VHost macros
|
# set username for all VHost macros
|
||||||
if [[ "$macro" == *"VHost"* ]]; then
|
if [[ "$macro" == *"VHost"* ]]; then
|
||||||
# check for vhost dir
|
# check for vhost dir
|
||||||
if [[ -d "/srv/www/$domain" ]]; then
|
if [[ "$macro" == *"Alias"* ]]; then
|
||||||
|
vhost=$option
|
||||||
|
else
|
||||||
|
vhost=$domain
|
||||||
|
fo
|
||||||
|
if [[ -d "/srv/www/$vhost" ]]; then
|
||||||
# get and set $username
|
# get and set $username
|
||||||
username=$(stat -c '%U' /srv/www/$domain)
|
username=$(stat -c '%U' /srv/www/$vhost)
|
||||||
macro_vhost_line="$macro_vhost_line $username"
|
macro_vhost_line="$macro_vhost_line $username"
|
||||||
else
|
else
|
||||||
echo "VirtualHost dir for $domain does not exist."
|
echo "VirtualHost dir for $vhost does not exist."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# check for and set Subdomain
|
# check for and set Subdomain
|
||||||
|
|
Loading…
Reference in New Issue
Block a user