From 9d479d67aedd11668140ab633b5793a1734a1fce Mon Sep 17 00:00:00 2001 From: "marco.locatelli@steamware.net" Date: Fri, 5 Dec 2025 13:24:01 +0100 Subject: [PATCH] fix e utilizzo script creazione repos e mirror --- ApiGit/Mirrors/GitlabForcePushMirror.ps1 | 2 +- ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 | 6 +++--- ApiGit/ReposCreation/ReposCreationGitea.ps1 | 8 ++++---- ApiGit/ReposCreation/ReposCreationGogs.ps1 | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ApiGit/Mirrors/GitlabForcePushMirror.ps1 b/ApiGit/Mirrors/GitlabForcePushMirror.ps1 index 83e67fb..e2825a3 100644 --- a/ApiGit/Mirrors/GitlabForcePushMirror.ps1 +++ b/ApiGit/Mirrors/GitlabForcePushMirror.ps1 @@ -12,7 +12,7 @@ $startTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") # avvio stopwatch $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while -$startProj = 1 +$startProj = 200 #numero massimo di progetti da analizzare $endProj = 250 #conteggio progetti trovati diff --git a/ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 b/ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 index 4c6e7e2..6fa40aa 100644 --- a/ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 +++ b/ApiGit/ReposCreation/ReposCreationAzzanoNembro.ps1 @@ -13,7 +13,7 @@ $startTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") # avvio stopwatch $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while -$startProj = 1 +$startProj = 200 #numero massimo di progetti da analizzare $endProj = 250 #nome file di log @@ -28,8 +28,8 @@ CheckLogFolder RotateOldLog #specifica quale installazione di gitlab va controllata -$remote = "Nembro" -#$remote = "Azzano" +#$remote = "Nembro" +$remote = "Azzano" if ($remote -eq "Nembro"){ $gitlabIstance = $destinationNembro diff --git a/ApiGit/ReposCreation/ReposCreationGitea.ps1 b/ApiGit/ReposCreation/ReposCreationGitea.ps1 index db0cab1..99940e2 100644 --- a/ApiGit/ReposCreation/ReposCreationGitea.ps1 +++ b/ApiGit/ReposCreation/ReposCreationGitea.ps1 @@ -12,7 +12,7 @@ $startTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") # avvio stopwatch $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while -$startProj = 1 +$startProj = 200 #numero massimo di progetti da analizzare $endProj = 250 #nome file di log @@ -21,8 +21,8 @@ $logFile = "GiteaReposCreation.log" $oldLogFile = "GiteaReposCreation.old" #gitea di destinazione -#$target = "steamware" -$target = "nembro" +$target = "steamware" +#$target = "nembro" #creazione folder di Log se non esiste CheckLogFolder @@ -40,7 +40,7 @@ $giteaPass = $giteaSteamwPass #access token per autenticazione gitea Steamw da profilo replica $giteaHead = $giteaSteamwHead } -if ($target = "nembro"){ +elseif ($target = "nembro") { #destinazione mirror per gitea nembro $giteaDestination = $giteaNembro #nome utente gitea nembro che effettua i mirror push diff --git a/ApiGit/ReposCreation/ReposCreationGogs.ps1 b/ApiGit/ReposCreation/ReposCreationGogs.ps1 index 1095932..0f985bc 100644 --- a/ApiGit/ReposCreation/ReposCreationGogs.ps1 +++ b/ApiGit/ReposCreation/ReposCreationGogs.ps1 @@ -12,9 +12,9 @@ $startTime = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") # avvio stopwatch $mainStopWatch = [system.diagnostics.stopwatch]::StartNew() #contatore ciclo do while -$startProj = 1 +$startProj = 200 #numero massimo di progetti da analizzare -$endProj = 250 +$endProj = 300 #nome file di log $logFile = "GogsReposCreation.log" #nome file di log old