Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Minor fixes in startup script #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ IF "%ComputeEmulatorRunning%" == "false" (
IF %EXECUTE_PS1% EQU 1 (
echo "Invoking SSLConfigure.ps1 on Azure service at %TIME% on %DATE%" >> %LOG_FILE% 2>&1
PowerShell -ExecutionPolicy Unrestricted %~dp0SSLConfigure.ps1 -sco >> %LOG_FILE% 2>&1
IF %ERRORLEVEL% NEQ 0 (EXIT /B %ERRORLEVEL%)
) ELSE (
echo "Skipping SSLConfigure.ps1 invocation on emulated environment" >> %LOG_FILE% 2>&1
)

EXIT /B 0
EXIT /B %ERRORLEVEL%
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ If ($reboot) {
$rand = [System.Random]::new($tick)
$sec = $rand.Next(30, 600)
Write-Host "Rebooting after", $sec, " second(s)..."
Write-Host shutdown.exe /r /t $sec /c "Crypto settings changed" /f /d p:2:4
shutdown.exe /r /t $sec /c "Crypto settings changed" /f /d p:2:4
} Else {
Write-Host "Nothing get updated."
}