update scripts

This commit is contained in:
Fran Jurmanović
2025-07-30 01:58:15 +02:00
parent 90aa63fc99
commit 687b406727
4 changed files with 210 additions and 1 deletions

View File

@@ -158,7 +158,7 @@ if (`$service) {
}
# Create backup of current deployment
`$backupPath = "$DeployPath\backup_`$(Get-Date -Format 'yyyyMMdd_HHmmss')"
`$backupPath = "$DeployPath_backups\backup_`$(Get-Date -Format 'yyyyMMdd_HHmmss')"
if (Test-Path "$DeployPath\$BinaryName.exe") {
Write-Host "Creating backup at: `$backupPath" -ForegroundColor Yellow
New-Item -ItemType Directory -Path `$backupPath -Force | Out-Null