Fix for rails path issue
git-svn-id: file:///home/svn/framework3/trunk@3929 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
5a3dcadd65
commit
94859c2ce4
5
msfweb
5
msfweb
|
@ -7,6 +7,9 @@
|
||||||
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
|
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
|
||||||
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
|
$:.unshift(File.join(File.dirname(msfbase), 'lib'))
|
||||||
|
|
||||||
msfserv = File.join(File.dirname(msfbase), 'data', 'msfweb', 'script', 'server')
|
msfroot = File.join(File.dirname(msfbase), 'data', 'msfweb')
|
||||||
|
Dir.chdir(msfroot)
|
||||||
|
|
||||||
|
msfserv = File.join('script', 'server')
|
||||||
system(msfserv, '-p', '55555', '-b', '127.0.0.1')
|
system(msfserv, '-p', '55555', '-b', '127.0.0.1')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue