Skip to content

Commit 709ec8a

Browse files
bturner-r7todb
authored andcommitted
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).
1 parent 27727df commit 709ec8a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

msfupdate

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ if is_apt
224224
else
225225
$stdout.puts "[*] Updating to version #{pro_version || framework_version}"
226226
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
228231
end
229232
end
230233

0 commit comments

Comments
 (0)