Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSDStart.ps1 - $deployRoot incorrectly called instead of $tsenv:DeployRoot #158

Open
jetski28 opened this issue Jun 25, 2024 · 0 comments
Open

Comments

@jetski28
Copy link

I was having an issue with a connection to our server due to an SSL certificate being invalid as the computer time was incorrect. I thought I would implement a NTP sync before PSD started but noticed that it is built into PSDStart script but checking the logs there was no logs of the NTP sync ever executing.

At the beginning of PSDStart.ps1 I see that $deployRoot is the local deploy root directory
And $tsenv:DeployRoot becomes the deploy root network location.

As I was looking (Line 600 onwards) at how the NTP Sync portion of the PSDStart script was executed I noticed the IF statements (especially on 608) is checking if $deployRoot is like https://* but the log written on Line 598 shows that $deployRoot is X:\Deploy. This variable is far from a Deploy Root URL.

My understanding would be that the NTP Sync (Line 600 to 627) IF statements should be validating based on $tsenv:DeployRoot
and similar IF statements are also found between Lines 532 & 577 when testing network connections.

Or should $deployRoot = $tsenv:DeployRoot be moved outside of the ELSE statement on line 517.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant