Skip to content
This repository
Browse code

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...
commit 709ec8a519ad81c1469aea1205402a7c816b26b6 1 parent 27727df
Brandon Turner authored March 05, 2013 todb committed March 05, 2013

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

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

0 notes on commit 709ec8a

Please sign in to comment.
Something went wrong with that request. Please try again.