fixed vhost- calls
This commit is contained in:
parent
53a3353f34
commit
8e0f1210bd
|
@ -96,22 +96,22 @@ if ! grep -q "^$username:" /etc/passwd; then
|
||||||
fi
|
fi
|
||||||
# add user
|
# add user
|
||||||
if [[ -n $write ]]; then
|
if [[ -n $write ]]; then
|
||||||
/usr/local/bin/vhost-user-add.sh $username -p "$password" -w
|
/usr/local/bin/vhost-user-add.sh -u $username -p "$password" -w
|
||||||
else
|
else
|
||||||
/usr/local/bin/vhost-user-add.sh $username -p "$password"
|
/usr/local/bin/vhost-user-add.sh -u $username -p "$password"
|
||||||
fi
|
fi
|
||||||
# if jail option is set then jail user
|
# if jail option is set then jail user
|
||||||
if [[ -n $jail ]]; then
|
if [[ -n $jail ]]; then
|
||||||
/usr/local/bin/vhost-user-jail.sh $username > /dev/null 2>&1
|
/usr/local/bin/vhost-user-jail.sh -u $username > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# add virtualhost
|
# add virtualhost
|
||||||
/usr/local/bin/vhost-add.sh $domain $username > /dev/null 2>&1
|
/usr/local/bin/vhost-add.sh -d $domain -u $username > /dev/null 2>&1
|
||||||
|
|
||||||
# add mysql database
|
# add mysql database
|
||||||
if [[ -n $write ]]; then
|
if [[ -n $write ]]; then
|
||||||
/usr/local/bin/vhost-mysql-db-add.sh $domain -w > /dev/null 2>&1
|
/usr/local/bin/vhost-mysql-db-add.sh -d $domain -w > /dev/null 2>&1
|
||||||
else
|
else
|
||||||
/usr/local/bin/vhost-mysql-db-add.sh $domain > /dev/null 2>&1
|
/usr/local/bin/vhost-mysql-db-add.sh -d $domain > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user