fix e utilizzo script creazione repos e mirror
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user