mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-22 07:01:08 +02:00
Improve warning message clarity for data migration failures
Agent-Logs-Url: https://github.com/alexbelgium/hassio-addons/sessions/58467521-7d29-4fad-99f8-aad56f0540b8 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f4f9b15628
commit
2b93184d25
@@ -33,7 +33,7 @@ fix_linkwarden_path() {
|
||||
# Preserve any data already written to the non-persistent path
|
||||
if [ -d "$resolved_path" ] && [ ! -L "$resolved_path" ]; then
|
||||
if ! cp -rn "$resolved_path/." "$actual_path/" 2>/dev/null; then
|
||||
bashio::log.warning "Could not copy existing data from $resolved_path to $actual_path"
|
||||
bashio::log.warning "Could not migrate existing data from $resolved_path to $actual_path (may be empty or a permissions issue)"
|
||||
fi
|
||||
rm -rf "$resolved_path"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user