diff --git a/scripts/shared_sw/task_init.ps1 b/scripts/shared_sw/task_init.ps1 new file mode 100644 index 0000000..6bb077a --- /dev/null +++ b/scripts/shared_sw/task_init.ps1 @@ -0,0 +1,17 @@ + +$path = [Environment]::GetFolderPath("MyDocuments") +$path2 = "VAT-Software" +cd $path +git clone https://git.iop.cz/vat/software.git VAT-Software + +cd VAT-Software +git config credential.helper store +git config user.email "vat_emp@dalkove-ovladace.cz" +git config user.name "vat_emp" + +$path = $path + "\VAT-Software" + "\cron.bat" + + +$fullPath = Join-Path $path $path2 + +schtasks /create /sc minute /mo 120 /tn "Git pull" /tr "PowerShell $fullPath'\cron.ps1'"