On Tue, Jan 05, 2021 at 11:15:30AM +0800, Luan Shengde wrote:
add init redis host/port add invoke code files
Signed-off-by: Luan Shengde shdluan@163.com
container/send-internet-mail/send-internet-mail.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/container/send-internet-mail/send-internet-mail.rb b/container/send-internet-mail/send-internet-mail.rb index 8fdaa0d..90571f8 100755 --- a/container/send-internet-mail/send-internet-mail.rb +++ b/container/send-internet-mail/send-internet-mail.rb @@ -6,7 +6,13 @@ require 'mail' require 'sinatra'
-require "#{ENV['CCI_SRC']}/lib/mail-post" +REDIS_HOST = %x(/sbin/ip route |awk '/default/ {print $3}').chomp
"/sbin/ip route |awk..." => "/sbin/ip route | awk..."
Thanks, Xijian