Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto-tx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vamp
auto-tx
Commits
b6e4ce37
Commit
b6e4ce37
authored
7 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Update path for service binaries, adapt REAMDE to latest changes.
Refers to
#13
parent
04bc02d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AutoTx-Updater/README.md
+32
-2
32 additions, 2 deletions
AutoTx-Updater/README.md
AutoTx-Updater/Update-Service.ps1
+1
-1
1 addition, 1 deletion
AutoTx-Updater/Update-Service.ps1
with
33 additions
and
3 deletions
AutoTx-Updater/README.md
+
32
−
2
View file @
b6e4ce37
Service Installation Updates
============================
The service can automatically be updated by running the
`Update-
AutoTx
Service.ps1`
script. It will check a remote location (configur
ed in the script header
) and do
The service can automatically be updated by running the
`Update-Service.ps1`
script. It will check a remote location (configur
able via a config file
) and do
the following tasks:
-
check for new service binaries and update the local ones if applicable
-
check for a new configuration file for this host and update the local one
-
try to restart the service if one of the previous tasks was done
Config File Options
-------------------
An example config file for the update script is provided as
`UpdaterConfig-Example.inc.ps1`
. The values should be mostly self-explaining, so
just a few comments here:
-
`$InstallationPath`
refers to the local directory where the service
executables have been installed, e.g.
`C:\Tools\AutoTx`
-
`$UpdateSourcePath`
points to the base directory on a storage location (most
likely some UNC path) where the service update files are provided. See the
next section for details on the structure therein.
Folder Structure
----------------
The
`$UpdateSourcePath`
folder structure is expected to be like this:
```
├─── Configs
│ └─── <HOSTNAME>
│ └─── configuration.xml
└─── Service
├─── Binaries
│ ├─── Latest
│ └─── build_2018-01-23_11-22-33
└─── UpdateMarkers
└─── <HOSTNAME>
```
Automatic Updates
-----------------
...
...
This diff is collapsed.
Click to expand it.
AutoTx-Updater/Update-Service.ps1
+
1
−
1
View file @
b6e4ce37
...
...
@@ -310,7 +310,7 @@ Check-ServiceState $ServiceName
$UpdateConfigPath
=
"
$(
$UpdateSourcePath
)
\Configs\
$(
$
env
:
COMPUTERNAME
)
"
$UpdateMarkerPath
=
"
$(
$UpdateSourcePath
)
\Service\UpdateMarkers"
$UpdateBinariesPath
=
"
$(
$UpdateSourcePath
)
\Service\
Latest
Binaries"
$UpdateBinariesPath
=
"
$(
$UpdateSourcePath
)
\Service\Binaries
\Latest
"
Exit
-IfDirMissing
$InstallationPath
"installation"
Exit
-IfDirMissing
$UpdateSourcePath
"update source"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment