2016-08-30 17:53:02 +02:00
|
|
|
mkdir C:\glassfish
|
2019-10-08 05:43:46 +02:00
|
|
|
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('http://download.java.net/glassfish/4.0/release/glassfish-4.0.zip', 'C:\Windows\Temp\glassfish4.zip')" <NUL
|
2016-12-30 15:57:58 +01:00
|
|
|
cmd /c ""C:\Program Files\7-Zip\7z.exe" -y x "C:\Windows\Temp\glassfish4.zip" -oC:\glassfish"
|
2016-08-30 17:53:02 +02:00
|
|
|
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"
|
2016-11-02 21:22:47 +01:00
|
|
|
cmd.exe /c "C:\glassfish\glassfish4\bin\asadmin.bat create-service domain1"
|
2016-11-02 23:07:02 +01:00
|
|
|
net start domain1
|
2017-05-02 17:22:19 +02:00
|
|
|
powershell -Command "Start-Sleep -s 10"
|
2016-11-02 23:07:02 +01:00
|
|
|
net stop domain1
|
2016-10-27 21:55:44 +02:00
|
|
|
icacls "C:\glassfish" /grant "NT Authority\LOCAL SERVICE:(OI)(CI)F" /T
|
2017-01-25 15:43:00 +01:00
|
|
|
sc config "domain1" obj= "NT Authority\LOCAL SERVICE"
|