View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001512||bareos-core||installer / packages||public||2023-02-07 04:48||2023-02-07 13:37|
|Summary||0001512: Updating Bareos polutes/invalidates user settings|
|Description||Upating Bareos recreates all the sample configuration files inside '/etc/bareos/' even if the folder exists and contains a working configuration.|
|Steps To Reproduce||Install Bareos, configure it using custom filenames, update Bareos.|
|Additional Information||Bareos should not touch an existing '/etc/bareos/' folder if it exists. That means that a user spent a considerable amount of time configuring the program and a simple system update will make the whole configuration invalid and Bareos won't even start.|
If there is a need to provide a sample configuration, do it in a separate folder, like '/etc/bareos-sample-config' so it won't break a working configuration. The installer/updater could even delete that folder before the install/update and recreate to provide an up-to-date example of the configuration for the current version without risking breaking anything.
|Tags||No tags attached.|
What OS are you using ?
We state into the documentation to not remove any installed files by your package manager, as it will be reinstalled if you delete them.
rpm will create for you rpmnew or rpmold files when they have been changed.
make install create .new .old files if existing are already there or have being changed.
One of the best way is to simply comment or keep them empty, so no changes will happen on update.
It is how it is actually, as we didn't have find a way to make the product as easy as possible for newcomer proposing a ready to use configuration.
Our the expert side, you can also simple create your personal /etc/bareos-production structure and create systemd overwrite service to use and point to that location.
|No changes will occurs|
|2023-02-07 04:48||MarceloRuiz||New Issue|
|2023-02-07 13:37||bruno-at-bareos||Note Added: 0004874|
|2023-02-07 13:37||bruno-at-bareos||Assigned To||=> bruno-at-bareos|
|2023-02-07 13:37||bruno-at-bareos||Status||new => resolved|
|2023-02-07 13:37||bruno-at-bareos||Resolution||open => won't fix|
|2023-02-07 13:37||bruno-at-bareos||Note Added: 0004875|