init share sw

This commit is contained in:
t0is 2023-08-29 19:31:17 +02:00
parent a06c21b7e5
commit 87a337b665

View File

@ -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'"