Change Sysconfig via sopm package

English! place to talk about development, programming and coding
Post Reply
rouven
Znuny newbie
Posts: 5
Joined: 04 Jun 2013, 07:34
Znuny Version: 2.3.3
Real Name: Rouven
Company: cimt ag

Change Sysconfig via sopm package

Post by rouven »

Hi,
is it possible to change a setting of a common attribute in sysconfig via my own sopm package? For example change proxy settings by providing a sopm file.

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

Re: Change Sysconfig via sopm package

Post by crythias »

if that sopm file contains a Files/something.xml (which it should) then yeah, you can overwrite things (except if specified in Config.pm).
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
rouven
Znuny newbie
Posts: 5
Joined: 04 Jun 2013, 07:34
Znuny Version: 2.3.3
Real Name: Rouven
Company: cimt ag

Re: Change Sysconfig via sopm package

Post by rouven »

Hi crythias,
thanks for the input. There is a XML file, so that shouldn't be the problem. I don't exactly understand how to overwrite existing settings, e.g. the MasterSlave Feature:

Code: Select all

    <ConfigItem Name="MasterSlave::UnsetMasterSlave" Required="1" Valid="1">
        <Description Translatable="1">Enable the feature to unset the MasterSlave state of a ticket in the advanced MasterSlave mode.</Description>
        <Group>MasterSlave</Group>
        <SubGroup>Core::MasterSlave</SubGroup>
        <Setting>
            <Option SelectedID="0">
                <Item Key="0">Disabled</Item>
                <Item Key="1">Enabled</Item>
            </Option>
        </Setting>
    </ConfigItem>
How do I set only the key to 1 without overwriting all other settings. I don't want to change the Group/Subgroup, etc. settings.

Rgds,

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

Re: Change Sysconfig via sopm package

Post by crythias »

<Option SelectedID="1">
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
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Change Sysconfig via sopm package

Post by reneeb »

SelectedID="1"
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
rouven
Znuny newbie
Posts: 5
Joined: 04 Jun 2013, 07:34
Znuny Version: 2.3.3
Real Name: Rouven
Company: cimt ag

Re: Change Sysconfig via sopm package

Post by rouven »

Vielen Dank!
ThorstenEckel
Znuny newbie
Posts: 24
Joined: 18 Dec 2013, 16:57
Znuny Version: *.*.*
Company: Znuny GmbH
Location: Berlin
Contact:

Re: Change Sysconfig via sopm package

Post by ThorstenEckel »

Since OTRS ready the config XML files in alphabetic order the last config wins. This might cause some troubles so it's recommended to use a propriate init attribute in your XML config:
http://doc.otrs.org/developer/3.0/en/ht ... xml-config

//Edit: Translated to english - sorry!
Last edited by ThorstenEckel on 16 Mar 2014, 15:21, edited 1 time in total.
Znuny4OTRS Extensions auf Github: https://github.com/znuny/
Znuny4OTRS - intl. Enterprise Services: https://znuny.com
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Change Sysconfig via sopm package

Post by crythias »

ThorstenEckel wrote:Da OTRS die config XMLs alphabetisch einliest und die "letzte" Config gewinnt, wäre es noch sinnvoll das passende init-Attribut zu setzen:
http://doc.otrs.org/developer/3.0/en/ht ... xml-config
Please in English on this forum.
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Change Sysconfig via sopm package

Post by crythias »

ThorstenEckel wrote:Da OTRS die config XMLs alphabetisch einliest und die "letzte" Config gewinnt, wäre es noch sinnvoll das passende init-Attribut zu setzen:
http://doc.otrs.org/developer/3.0/en/ht ... xml-config
Please in English on this forum.
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
Post Reply