mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-30 16:55:50 +02:00
Merge branch 'start_services_on_boot'
This commit is contained in:
commit
3be68e1980
2
Vagrantfile
vendored
2
Vagrantfile
vendored
|
@ -47,6 +47,8 @@ Vagrant.configure("2") do |config|
|
|||
# Vulnerability - Setup for Glassfish
|
||||
config.vm.provision :shell, path: "scripts/installs/setup_glassfish.bat"
|
||||
config.vm.provision :shell, inline: "rm C:\\tmp\\vagrant-shell.bat" # Hack for this bug: https://github.com/mitchellh/vagrant/issues/7614
|
||||
config.vm.provision :shell, path: "scripts/installs/start_glassfish_service.bat"
|
||||
config.vm.provision :shell, inline: "rm C:\\tmp\\vagrant-shell.bat" # Hack for this bug: https://github.com/mitchellh/vagrant/issues/7614
|
||||
|
||||
# Vulnerability - Jenkins (1.8)
|
||||
config.vm.provision :shell, path: "scripts/installs/setup_jenkins.bat"
|
||||
|
|
|
@ -2,6 +2,7 @@ rm "%CATALINA_HOME%\conf\tomcat-users.xml"
|
|||
copy C:\vagrant\resources\apache_struts\tomcat-users.xml "%CATALINA_HOME%\conf\tomcat-users.xml"
|
||||
copy C:\vagrant\resources\apache_struts\server.xml "%CATALINA_HOME%\conf"
|
||||
|
||||
sc config Tomcat8 start= auto
|
||||
net start "Apache Tomcat 8.0 Tomcat8"
|
||||
|
||||
copy C:\vagrant\resources\apache_struts\struts2-rest-showcase.war "%CATALINA_HOME%\webapps"
|
|
@ -4,5 +4,4 @@ cmd /c ""C:\Program Files\7-Zip\7z.exe" x "C:\Windows\Temp\glassfish4.zip" -oC:\
|
|||
copy /Y "C:\vagrant\resources\glassfish\admin-keyfile" "C:\glassfish\glassfish4\glassfish\domains\domain1\config\admin-keyfile"
|
||||
copy /Y "C:\vagrant\resources\glassfish\domain.xml" "C:\glassfish\glassfish4\glassfish\domains\domain1\config\domain.xml"
|
||||
|
||||
schtasks /create /tn "GlassFish" /tr "C:\glassfish\glassfish4\bin\asadmin.bat start-domain domain1" /sc onstart /np
|
||||
schtasks /run /tn "GlassFish"
|
||||
C:\glassfish\glassfish4\bin\asadmin.bat create-service domain1
|
||||
|
|
|
@ -2,3 +2,4 @@ mkdir "%ProgramFiles%\jenkins"
|
|||
copy C:\vagrant\resources\jenkins\jenkins.war "%ProgramFiles%\jenkins"
|
||||
copy C:\vagrant\resources\jenkins\jenkins.exe "%ProgramFiles%\jenkins"
|
||||
"%ProgramFiles%\jenkins\jenkins.exe" -Service Install
|
||||
sc config jenkins start= auto
|
1
scripts/installs/start_glassfish_service.bat
Normal file
1
scripts/installs/start_glassfish_service.bat
Normal file
|
@ -0,0 +1 @@
|
|||
net start "domain1 GlassFish Server"
|
Loading…
Reference in New Issue
Block a user