The environment variable ATTACHMENT_DIR should be a path using the character \ as directory separator on Windows
Current Behavior
The environment variable ATTACHMENT_DIR is a path that uses both the characters / and \ as directory separators on Windows
Possible Solution
Use filepath.Join in line 106 of dispatcher/script.go
Steps to Reproduce (for bugs)
Create a script with the code echo %ATTACHMENT_DIR% and add it to a Windows template as a boot script
Deploy a server with that Windows template
When the server gets operational, it should have an script execution event with an output similar to C:\Windows\TEMP\cio2413023516/attachments, the / should be a \
Expected Behavior
The environment variable ATTACHMENT_DIR should be a path using the character
\
as directory separator on WindowsCurrent Behavior
The environment variable ATTACHMENT_DIR is a path that uses both the characters
/
and\
as directory separators on WindowsPossible Solution
Use filepath.Join in line 106 of dispatcher/script.go
Steps to Reproduce (for bugs)
echo %ATTACHMENT_DIR%
and add it to a Windows template as a boot scriptC:\Windows\TEMP\cio2413023516/attachments
, the/
should be a\
Context and environment