mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Automatically call v-make-separated-ip-for-email from v-make-separated-ip-for-email-domain
This commit is contained in:
parent
dd892f7303
commit
a2954d3731
1 changed files with 2 additions and 4 deletions
|
@ -33,8 +33,7 @@ is_domain_format_valid "$DOMAIN"
|
||||||
is_ip_format_valid "$IP"
|
is_ip_format_valid "$IP"
|
||||||
|
|
||||||
if [ ! -d "/etc/exim4/virtual" ]; then
|
if [ ! -d "/etc/exim4/virtual" ]; then
|
||||||
echo "You must first dedicate IP to some hostname using command v-make-separated-ip-for-email"
|
/usr/local/vesta/bin/v-make-separated-ip-for-email "$DOMAIN" "$IP"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HOST_USER=$($VESTA/bin/v-search-domain-owner "$HOSTNAME")
|
HOST_USER=$($VESTA/bin/v-search-domain-owner "$HOSTNAME")
|
||||||
|
@ -50,8 +49,7 @@ HOST_IP=$($VESTA/bin/v-list-web-domain "$HOST_USER" "$HOSTNAME" | grep 'IP:' | a
|
||||||
|
|
||||||
check_grep=$(grep -c "^$IP:" /etc/exim4/virtual/helo_data)
|
check_grep=$(grep -c "^$IP:" /etc/exim4/virtual/helo_data)
|
||||||
if [ "$check_grep" -eq 0 ]; then
|
if [ "$check_grep" -eq 0 ]; then
|
||||||
echo "You must first dedicate IP to some hostname using command v-make-separated-ip-for-email"
|
/usr/local/vesta/bin/v-make-separated-ip-for-email "$DOMAIN" "$IP"
|
||||||
exit 3
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
USER=$($VESTA/bin/v-search-domain-owner "$DOMAIN")
|
USER=$($VESTA/bin/v-search-domain-owner "$DOMAIN")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue