Ticket #9482 (closed Patch - Bug Fix: Fixed)
Opened 2 years ago
Last modified 2 years ago
mythconverg_restore.pl --change_hostname breaks things if old_hostname is 'myth'
|Reported by:||Alex Tomlins <alex@…>||Owned by:||mdean|
|Component:||MythTV - General||Version:||0.24-fixes|
There's an issue with the mythconverg_restore.pl script when renaming a host. If the old_hostname is 'myth' then lots of values in the setting table get clobbered.
For example when renaming a host from myth to myth-fe1 all the mythvideo.* setting are renamed to myth-fe1video.*
I've tracked the problem down to the core that handles changing the hostname in the SGweightPerDir values.
I've also noticed another problem with the current code. If the old_hostname appears in the directory part, this will get changed as well.
I've updated the code to be much more specific about what it changes. Patch attached (created with git format-patch).
Changed 2 years ago by Alex Tomlins <alex@…>
- Attachment 0001-Make-mythconverg_restore.pl-change_hostname-not-brea.patch added
comment:1 Changed 2 years ago by mdean
- Status changed from new to closed
- Resolution set to Fixed
- Milestone changed from unknown to 0.23-fixes
comment:2 Changed 2 years ago by mdean
- Owner set to mdean