Opened 4 years ago
Closed 4 years ago
Last modified 4 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).