Icinga / Icinga/icinga-powershell-framework
IcingaForWindows.ps1 - Problems with $env:temp
@LordHepipud is already working on this.
Since Apr 22, 2025.
- Dominant language
- PowerShell
- Stars
- 87
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to install the Icinga Framework for Windows using the script IcingaForWindows.ps1.
However it seems to use the variable $env:temp everywhere to write temporary files in to the user's temp directory.
This causes problems on our systems as the usernames seem to be garbled up by Powershell, e.g. the username t.bruns-t2 becomes C:\Users\T6CBA~1.BRU\AppData\Local\Temp and this causes problems like this one:
Remove-Item : An object at the specified path C:\Users\T6CBA~1.BRU does not exist.
This is probably because of https://github.com/PowerShell/PowerShell/issues/17359#issuecomment-2070911310
Is there a way to consistently use a well-known directory like C:\Windows\Temp?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.