From ec144020f59afeaac3a9c8d240e5a2a014119c82 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Fri, 8 Dec 2017 14:02:34 +0100 Subject: [PATCH] Move updater script to separate directory, add example config. References #13 --- AutoTx-Updater/.gitignore | 1 + {AutoTx/Resources => AutoTx-Updater}/README.md | 2 +- .../Update-Service.ps1 | 0 AutoTx-Updater/UpdaterConfig-Example.inc.ps1 | 10 ++++++++++ 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 AutoTx-Updater/.gitignore rename {AutoTx/Resources => AutoTx-Updater}/README.md (96%) rename AutoTx/Resources/Update-AutoTxService.ps1 => AutoTx-Updater/Update-Service.ps1 (100%) create mode 100644 AutoTx-Updater/UpdaterConfig-Example.inc.ps1 diff --git a/AutoTx-Updater/.gitignore b/AutoTx-Updater/.gitignore new file mode 100644 index 0000000..a3cdb3e --- /dev/null +++ b/AutoTx-Updater/.gitignore @@ -0,0 +1 @@ +UpdaterConfig.inc.ps1 \ No newline at end of file diff --git a/AutoTx/Resources/README.md b/AutoTx-Updater/README.md similarity index 96% rename from AutoTx/Resources/README.md rename to AutoTx-Updater/README.md index 5e57032..94a0e25 100644 --- a/AutoTx/Resources/README.md +++ b/AutoTx-Updater/README.md @@ -43,7 +43,7 @@ $Cred = Get-Credential # register the job for execution Register-ScheduledJob ` - -FilePath C:\Tools\AutoTx\Update-AutoTxService.ps1 ` + -FilePath C:\Tools\AutoTx\Update-Service.ps1 ` -Name "Update-AutoTxService" ` -ScheduledJobOption $JobOptions ` -Trigger $JobTrigger ` diff --git a/AutoTx/Resources/Update-AutoTxService.ps1 b/AutoTx-Updater/Update-Service.ps1 similarity index 100% rename from AutoTx/Resources/Update-AutoTxService.ps1 rename to AutoTx-Updater/Update-Service.ps1 diff --git a/AutoTx-Updater/UpdaterConfig-Example.inc.ps1 b/AutoTx-Updater/UpdaterConfig-Example.inc.ps1 new file mode 100644 index 0000000..3832737 --- /dev/null +++ b/AutoTx-Updater/UpdaterConfig-Example.inc.ps1 @@ -0,0 +1,10 @@ +# settings for the AutoTx Service Updater + +$InstallationPath = "C:\Tools\AutoTx" +$ServiceName = "AutoTx" + +$UpdateSourcePath = "\\fileserver.mydomain.xy\share\\_AUTOTX_" + +$EmailFrom = "admin@mydomain.xy" +$EmailTo = "admin@mydomain.xy" +$EmailSMTP = "smtp.mydomain.xy" \ No newline at end of file -- GitLab