mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Update v-make-ip-ssl
This commit is contained in:
parent
1f11dfbbf2
commit
cc0527a8dc
1 changed files with 6 additions and 3 deletions
|
@ -38,12 +38,15 @@ is_object_unsuspended 'user' 'USER' "$user"
|
||||||
# Action #
|
# Action #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
|
if [ ! -f "/etc/exim4/virtual/helo_data" ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Script ran with: $user $domain" >> /usr/local/vesta/log/v-make-ip-ssl.log
|
echo "Script ran with: $user $domain" >> /usr/local/vesta/log/v-make-ip-ssl.log
|
||||||
|
|
||||||
grepr=$(grep -c "^$domain:" /etc/exim4/virtual/interfaces)
|
grepr=$(grep -c ": $domain$" /etc/exim4/virtual/helo_data)
|
||||||
if [ $grepr -ge 1 ]; then
|
if [ $grepr -ge 1 ]; then
|
||||||
grepr=$(grep "^$domain:" /etc/exim4/virtual/interfaces)
|
ip=$(grep ": $domain$" /etc/exim4/virtual/helo_data | awk -F: '{print $1}')
|
||||||
ip=${grepr/$domain: /}
|
|
||||||
if [ ! -z "$ip" ]; then
|
if [ ! -z "$ip" ]; then
|
||||||
echo "Processinng $domain" >> /usr/local/vesta/log/v-make-ip-ssl.log
|
echo "Processinng $domain" >> /usr/local/vesta/log/v-make-ip-ssl.log
|
||||||
echo "IP = $ip" >> /usr/local/vesta/log/v-make-ip-ssl.log
|
echo "IP = $ip" >> /usr/local/vesta/log/v-make-ip-ssl.log
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue