after pkg upgrade doas config gone?

Hi there, I have been using doas to "separate" my user from root, but after `pkg upgrade` from 15.1p5 to 15.1p6 the doas config was deleted??? Im sure I was using doas before :).

So is normal that this kind of files are deleted between upgrades or I missed something? like the file got moved to a newer place?

after copying from root again the sample config all is working again, so just wondering...


cp /usr/local/etc/containers/pf.conf.sample /etc/pf.conf
 
2 more points:
- pkg has nothing to do with doas or pf unless you opted for the experimental pkgbase
- that "/usr/local/etc/containers" path is definitely not coming from base; are we really talking about vanilla FreeBSD here?


edit: My brain was in OpenBSD mode - on FreeBSD 'doas' is of course a port (sadly)
 
Updating doas from 6.4 to 6.4_1 removes /usr/local/etc/doas.conf if the file was never modified and doas.conf.sample is no longer copied to doas.conf. Mystery solved.:)
 
FYI, doas package does not install doas.conf.sample any more:

I've stumbled upon this yesterday evening when configuring a new VM and wondered whether my memory started to fail me because I recall that wheel group membership used to be enough to run commands with doas(1) in the past.
Code:
op@base:~ % pkg info -a | grep doas
doas-6.4_1                     Simple sudo alternative to run commands as another user
 
Back
Top