Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

IcingaForWindows.ps1 - Problems with $env:temp

Aperta
#762 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@LordHepipud ci sta già lavorando.

Dal 22/4/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Bug Investigation

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?

Lingua principale
PowerShell
Stelle
87
Fork
34
Merge medio
4g 11h
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Icinga/icinga-powershell-framework

Tutte le issue di Icinga/icinga-powershell-framework

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.