Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 648734

Summary: app-backup/bareos-16.2.7 should set CONFIG_PROTECT=/etc/bareos
Product: Gentoo Linux Reporter: Anders Larsson <anders.gentoo>
Component: Current packagesAssignee: Marc Schiffbauer <mschiff>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info - Workstation
emerge --info - Server (client to bareos)
emerge --info - Director

Description Anders Larsson 2018-02-24 22:12:35 UTC
Every time app-backup/bareos is re-merged it fails to protect any files in /etc/bareos (at least while on clients). Because of this the contents of /etc/bareos/bareos-fd.d/director/bareos-dir.conf, which contains the credentials for the BareOS Director, gets overwritte Because of this every time app-backup/bareos is re-merged BareOS needs to be reconfigured for to ensure backups can be made successfully.

Steps to reproduce:
* emerge -1 app-backup/bareos
* A new password will generated for /etc/bareos/bareos-fd.d/director/bareos-dir.conf and replace the previous one
* Backups fail after service restart
Comment 1 Marc Schiffbauer gentoo-dev 2018-05-03 07:48:04 UTC
The ebuild does not mess with CONFIG_PROTECT at all, so I assume your setup does.

Please post 'emerge --config' froma system where that happens.

TIA
Comment 2 Anders Larsson 2018-05-03 16:43:49 UTC
Created attachment 529612 [details]
emerge --info - Workstation
Comment 3 Anders Larsson 2018-05-03 16:44:25 UTC
Created attachment 529614 [details]
emerge --info - Server (client to bareos)
Comment 4 Anders Larsson 2018-05-03 16:44:50 UTC
Created attachment 529616 [details]
emerge --info - Director
Comment 5 Marc Schiffbauer gentoo-dev 2020-03-03 07:27:47 UTC
Did you have this problem with newer versions as well?
If yes please repoen this bug and I will update it.


TIA
Comment 6 Anders Larsson 2020-03-03 14:48:43 UTC
Hi,

You can close this issue since I'm no longer using Bareos and have not for a while.

Thanks.