Permalink
Browse files

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).
  • Loading branch information...
1 parent 27727df commit 709ec8a519ad81c1469aea1205402a7c816b26b6 @bturner-r7 bturner-r7 committed with todb Mar 5, 2013
Showing with 4 additions and 1 deletion.
  1. +4 −1 msfupdate
View
@@ -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

0 comments on commit 709ec8a

Please sign in to comment.