-
-
Notifications
You must be signed in to change notification settings - Fork 403
Update update.ps1 #1862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update update.ps1 #1862
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -637,10 +637,16 @@ Function Update-openHAB() { | |
| Write-Host -ForegroundColor Cyan "Creating backup directories in $TempBackupDir" | ||
| DeleteIfExists $TempBackupDir $True | ||
|
|
||
| Write-Host -ForegroundColor Cyan "Copying directory conf, userdata and runtime to $TempBackupDirConf" | ||
| Copy-Item -Path $OHConf, $OHUserData, $OHRuntime -Destination $TempBackupDir -Recurse -Force -ErrorAction Stop | ||
| Write-Host -ForegroundColor Cyan "Copying directory conf, userdata and runtime to $TempBackupDir" | ||
| New-Item -Path $TempBackupDir -Name "conf" -ItemType "Directory" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Pre-creating The existing CreateDirectory $TempBackupDir
Copy-Item -Path $OHConf -Destination $TempBackupDirConf -Recurse -Force -ErrorAction Stop
Copy-Item -Path $OHUserData -Destination $TempBackupDirUserData -Recurse -Force -ErrorAction Stop
Copy-Item -Path $OHRuntime -Destination $TempBackupDirRuntime -Recurse -Force -ErrorAction Stop
CreateDirectory $TempBackupDirHomeThis still gives the backup the fixed |
||
| Copy-Item -Path $OHConf -Destination $TempBackupDirConf -Recurse -Force -ErrorAction Stop | ||
| New-Item -Path $TempBackupDir -Name "userdata" -ItemType "Directory" | ||
| Copy-Item -Path $OHUserData -Destination $TempBackupDirUserData -Recurse -Force -ErrorAction Stop | ||
| New-Item -Path $TempBackupDir -Name "runtime" -ItemType "Directory" | ||
| Copy-Item -Path $OHRuntime -Destination $TempBackupDirRuntime -Recurse -Force -ErrorAction Stop | ||
|
|
||
| Write-Host -ForegroundColor Cyan "Copying files from $OHDirectory to $TempBackupDirHome" | ||
| New-Item -Path $TempBackupDir -Name "home" -ItemType "Directory" | ||
| Get-ChildItem $OHDirectory -File -ErrorAction Stop | Copy-Item -Destination $TempBackupDirHome -Force -ErrorAction Stop | ||
|
|
||
| } catch { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the text should be adapted....