mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 11:37:40 +00:00
Create .nobackup marker file to exclude image directory from RaspberryMatic backup
This commit is contained in:
parent
219d5801b4
commit
ad09a64d76
@ -1083,7 +1083,14 @@ proc ::rmupdate::download_firmware {{download_url ""} {version ""}} {
|
||||
write_install_log "Downloading firmware from %s." $download_url
|
||||
regexp {/([^/]+)$} $download_url match archive_file
|
||||
set archive_file "${img_dir}/${archive_file}"
|
||||
if {![file exists $img_dir]} {
|
||||
file mkdir $img_dir
|
||||
}
|
||||
if {![file exists "${img_dir}/.nobackup"]} {
|
||||
# Create marker file to exclude directory from RaspberryMatic backup
|
||||
set fd [open "${img_dir}/.nobackup" "w"]
|
||||
close $fd
|
||||
}
|
||||
if {$install_log != ""} {
|
||||
exec /usr/bin/wget "${download_url}" --show-progress --progress=dot:giga --no-check-certificate --quiet --output-document=$archive_file 2>>${install_log}
|
||||
write_install_log ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user