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
07b83a83
Commit
07b83a83
authored
7 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Move code to check service update marker file into separate function.
Refers to
#28
,
#13
parent
5ea19272
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Updater/Update-Service.ps1
+13
-3
13 additions, 3 deletions
Updater/Update-Service.ps1
with
13 additions
and
3 deletions
Updater/Update-Service.ps1
+
13
−
3
View file @
07b83a83
...
...
@@ -333,11 +333,11 @@ function Copy-ServiceFiles {
function
Update
-ServiceBinaries
{
$MarkerFile
=
"
$(
$UpdPathMarkerFiles
)
\
$(
$
env
:
COMPUTERNAME
)
"
if
(
Test-Path
"
$MarkerFile
"
-Type
Leaf
)
{
Log-Debug
"Found marker [
$(
$MarkerFile
)
], not updating service."
$NewService
=
NewServiceBinaries-Available
if
(
-Not
(
$NewService
))
{
Return
$False
}
Stop-TrayApp
Copy-ServiceFiles
try
{
...
...
@@ -351,6 +351,16 @@ function Update-ServiceBinaries {
Return
$True
}
function
NewServiceBinaries
-Available
{
$MarkerFile
=
"
$(
$UpdPathMarkerFiles
)
\
$(
$
env
:
COMPUTERNAME
)
"
if
(
Test-Path
"
$MarkerFile
"
-Type
Leaf
)
{
Log-Debug
"Found marker [
$(
$MarkerFile
)
], not updating service."
Return
$False
}
Write
-Verbose
"Marker [
$(
$MarkerFile
)
] missing, service should be updated!"
Return
$True
}
function
Upload
-LogFiles
{
$Dest
=
"
$(
$UploadPathLogs
)
\
$(
$
env
:
COMPUTERNAME
)
"
...
...
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