otrs.RebuildConfig.pl What does this do

Moderator: crythias

Locked
mgk
Znuny newbie
Posts: 2
Joined: 24 Nov 2011, 18:31
Znuny Version: 3
Real Name: Adam

otrs.RebuildConfig.pl What does this do

Post by mgk »

Hi All

I'm looking at following this guide here :- http://blog.otrs.org/2010/10/22/dont-le ... ur-ticket/

In it it advises running the perl bin/otrs.RebuildConfig.pl

Can anyone tell me what this script does? Specifically is there any risk in running it? Does it cut access off?

thanks

Adam
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: otrs.RebuildConfig.pl What does this do

Post by crythias »

It does, basically, this:

Code: Select all

if ( $CommonObject{SysConfigObject}->WriteDefault() ) {
    exit;
}
Which does this:
WriteDefault()
writes the default configuration file perl cache (Kernel/Config/Files/ZZZAAuto.pm). It is the Perl representation of the default XML configuration data (Kernel/Config/Files/*.xml).

Which means, basically, unless the xml files are misconfigured, it *says* it won't do anything to any file but the file that holds the defaults: ZZZAAuto.pm.

What should you do? well, if you're paranoid, back up the Kernel/Config/Files/* before running the command. But it won't touch your custom configurations.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
mgk
Znuny newbie
Posts: 2
Joined: 24 Nov 2011, 18:31
Znuny Version: 3
Real Name: Adam

Re: otrs.RebuildConfig.pl What does this do

Post by mgk »

Great, Thanks for your help and explanation.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: otrs.RebuildConfig.pl What does this do

Post by crythias »

You're welcome. I realize I wasn't clear enough in my statement before. If your xmls are misconfigured, the rebuildconfig may not successfully write the ZZZAAuto.pm, but it still says it isn't going to touch the other xmls or other files.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked