added lines to create positions file and bookmark-systems file.
This commit is contained in:
parent
2f9f1acee7
commit
ffb1f5ad92
@ -354,6 +354,12 @@ if ($shouldDownloadPromtail) {
|
|||||||
$downloadPath = Prompt-User -Prompt "Download directory" -Default $runPath
|
$downloadPath = Prompt-User -Prompt "Download directory" -Default $runPath
|
||||||
|
|
||||||
Ensure-Directory -Path $downloadPath
|
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]
|
$filename = $downloadUrl.Split("/")[-1]
|
||||||
$fullPath = Join-Path -Path $downloadPath -ChildPath $filename
|
$fullPath = Join-Path -Path $downloadPath -ChildPath $filename
|
||||||
|
Loading…
x
Reference in New Issue
Block a user