1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Fix for the reconfigurator script

Discussion in 'Plesk Suggestions and Feedback' started by the_belette, Nov 22, 2012.

  1. the_belette

    the_belette New Pleskian

    10
     
    Joined:
    Nov 22, 2012
    Messages:
    3
    Likes Received:
    0
    I recently had to perform a migration from an old plesk (8) to a brand new one, and switch IP from server to server.
    To change all the domains IPs, I used the reconfigurator script : /usr/local/psa/bin/reconfigurator.pl
    Unfortunately, if you have special characters in your network interface name (mine was bond0.702), the script will result a parse error.

    I found a workaround editing the reconfigurator.pl script, my addr_pattern now goes like this :
    addr_pattern=re.compile(r"\s*([\w\.]+):?\s*(\S+)\s+([0-9.]+)");

    It could be a nice fix to add for other migration addicts :)
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,557
    Likes Received:
    1,242
    Location:
    Novosibirsk, Russia
    Thank you for sharing and cooperation. We will consider it for implementation.
     
Loading...