mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 12:36:23 -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 #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
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
|
||||
|
||||
grepr=$(grep -c "^$domain:" /etc/exim4/virtual/interfaces)
|
||||
grepr=$(grep -c ": $domain$" /etc/exim4/virtual/helo_data)
|
||||
if [ $grepr -ge 1 ]; then
|
||||
grepr=$(grep "^$domain:" /etc/exim4/virtual/interfaces)
|
||||
ip=${grepr/$domain: /}
|
||||
ip=$(grep ": $domain$" /etc/exim4/virtual/helo_data | awk -F: '{print $1}')
|
||||
if [ ! -z "$ip" ]; then
|
||||
echo "Processinng $domain" >> /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