Use start.sh to start Pro via msfupdate command

start.sh (installed with community/pro on apt installs) automatically
starts dependency services (such as postgresql).
bug/bundler_fix
Brandon Turner 2013-03-05 14:41:09 -06:00 committed by Tod Beardsley
parent 27727df415
commit 709ec8a519
1 changed files with 4 additions and 1 deletions

View File

@ -224,7 +224,10 @@ if is_apt
else
$stdout.puts "[*] Updating to version #{pro_version || framework_version}"
system("apt-get", "install", "--assume-yes", *packages)
system("/etc/init.d/metasploit start") if packages.include?('metasploit')
if packages.include?('metasploit')
start_cmd = File.expand_path(File.join(@msfbase_dir, '..', '..', '..', 'scripts', 'start.sh'))
system(start_cmd) if ::File.executable_real? start_cmd
end
end
end