View Issue Details

IDProjectCategoryView StatusLast Update
0001512bareos-coreinstaller / packagespublic2023-02-07 13:37
ReporterMarceloRuiz Assigned Tobruno-at-bareos  
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionwon't fix 
Summary0001512: Updating Bareos polutes/invalidates user settings
DescriptionUpating Bareos recreates all the sample configuration files inside '/etc/bareos/' even if the folder exists and contains a working configuration.
Steps To ReproduceInstall Bareos, configure it using custom filenames, update Bareos.
Additional InformationBareos 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.
TagsNo tags attached.

Activities

bruno-at-bareos

bruno-at-bareos

2023-02-07 13:37

manager   ~0004874

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.
bruno-at-bareos

bruno-at-bareos

2023-02-07 13:37

manager   ~0004875

No changes will occurs

Issue History

Date Modified Username Field Change
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