fix e utilizzo script creazione repos e mirror

This commit is contained in:
marco.locatelli@steamware.net
2025-12-05 13:24:01 +01:00
parent 130e7b6107
commit 9d479d67ae
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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
@@ -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
+4 -4
View File
@@ -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
+2 -2
View File
@@ -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