Skip to content
Snippets Groups Projects
Commit d69b2d92 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Make config file path configurable in updater scripts.

Refers to #18
parent 25d767e8
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,7 @@ function Update-File {
function Update-Configuration {
$NewConfig = "$($UpdateConfigPath)\configuration.xml"
if (Test-Path -PathType Leaf $NewConfig) {
$ret = Update-File $NewConfig $InstallationPath
$ret = Update-File $NewConfig $ConfigPath
} else {
$ret = $False
Write-Verbose "No configuration file found at '$($NewConfig)'."
......@@ -387,6 +387,7 @@ $UpdateBinariesPath = "$($UpdateSourcePath)\Service\Binaries"
$LogfileUpload = "$($UpdateSourcePath)\Logs\$($env:COMPUTERNAME)"
Exit-IfDirMissing $InstallationPath "installation"
Exit-IfDirMissing $ConfigPath "configuration files"
Exit-IfDirMissing $UpdateSourcePath "update source"
Exit-IfDirMissing $UpdateConfigPath "configuration update"
Exit-IfDirMissing $UpdateMarkerPath "update marker"
......
......@@ -2,6 +2,7 @@
$ServiceName = "AutoTx"
$InstallationPath = "C:\Tools\$($ServiceName)"
$ConfigPath = "$($InstallationPath)"
$LogPath = "$($InstallationPath)"
$UpdateSourcePath = "\\fileserver.mydomain.xy\share\_AUTOTX_"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment