fixed vhost- calls
This commit is contained in:
parent
53a3353f34
commit
8e0f1210bd
|
@ -96,22 +96,22 @@ if ! grep -q "^$username:" /etc/passwd; then
|
|||
fi
|
||||
# add user
|
||||
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
|
||||
/usr/local/bin/vhost-user-add.sh $username -p "$password"
|
||||
/usr/local/bin/vhost-user-add.sh -u $username -p "$password"
|
||||
fi
|
||||
# if jail option is set then jail user
|
||||
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
|
||||
|
||||
# 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
|
||||
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
|
||||
/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
|
||||
|
|
Loading…
Reference in New Issue
Block a user