Fix for rails path issue

git-svn-id: file:///home/svn/framework3/trunk@3929 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2006-09-24 00:31:07 +00:00
parent 5a3dcadd65
commit 94859c2ce4
1 changed files with 4 additions and 1 deletions

5
msfweb
View File

@ -7,6 +7,9 @@
msfbase = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
$:.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')