init share sw
This commit is contained in:
parent
a06c21b7e5
commit
87a337b665
17
scripts/shared_sw/task_init.ps1
Normal file
17
scripts/shared_sw/task_init.ps1
Normal 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'"
|
Loading…
Reference in New Issue
Block a user