fixed vhost- calls

This commit is contained in:
Matthew Saunders Brown 2021-10-05 13:46:59 -07:00
parent 53a3353f34
commit 8e0f1210bd

View File

@ -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