added lines to create positions file and bookmark-systems file.

This commit is contained in:
Mathew 2024-09-19 14:13:41 +00:00
parent 2f9f1acee7
commit ffb1f5ad92

View File

@ -354,6 +354,12 @@ if ($shouldDownloadPromtail) {
$downloadPath = Prompt-User -Prompt "Download directory" -Default $runPath
Ensure-Directory -Path $downloadPath
Ensure-Directory -Path 'c:\ProgramData\Promtail'
## Now create the positions files. NB Please create a Positions file for each Job.
New-Item -Path c:\ProgramData\Promtail\positions.txt -ItemType File
New-Item -Path c:\ProgramData\Promtail\bookmark-system.xml -ItemType File
$filename = $downloadUrl.Split("/")[-1]
$fullPath = Join-Path -Path $downloadPath -ChildPath $filename