Open link in a new tab

Content

Expand project menu

Write current configuration to installer.dat

Hello,

is there a way to write the current configuration of an OpenProject instance into the installer.dat file?

Best regards

Kevin

Message actions

Hi Kevin,

OpenProject configuration from a packaged installation is split into two things:

  1. Configuration settings. These are mainly created from ENV variables in packaged installations. You can see them with openproject config . They are being generated from /etc/openproject/installer.dat and also any additional variables are stored in /etc/openproject/conf.d/* 
  2. UI-defined and changeable settings. These are stored in a database table called settings, so you'd need to extract them from there to move them to another installation

Could you elaborate on what your use-case is?

Best

Oliver from OpenProject

Message actions

Hey Oliver,

thank you for your response.

My use case is more effected from the UI-defined and changeable settings.
We are using version 11.1.1.

Our OpenProject admin shortened the Hostname after the installation in the UI settings.
I installed my plugin by doing the given procedure from the documents and lastly executing 'openproject configure', but after that the Hostname got set back to the old value. By now I don´t know, if other settings are effected too.

As far as I understood, the 'openproject configure' command reads it´s settings from the installer.dat file.
That´s why I was wondering, if there is a command that takes those settings and writes them to installer.dat.

Best regards

Kevin