set LHOST in docker

bug/bundler_fix
Christian Mehlmauer 2017-05-10 09:37:54 +02:00
parent faf01ed5ef
commit 23e97f4ea9
No known key found for this signature in database
GPG Key ID: DCF54A05D6E62591
1 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
<ruby>
run_single("setg LHOST #{ENV['LHOST']}") if ENV['LHOST']
run_single("setg LPORT #{ENV['LPORT']}") if ENV['LPORT']
if ENV['LHOST']
lhost = ENV['LHOST']
else
lhost = %x(hostname -i)
end
run_single("setg LHOST #{lhost}")
run_single("db_connect #{ENV['DATABASE_URL'].gsub('postrgres://', '')}") if ENV['DATABASE_URL']
</ruby>