NagiosEnterprises / ncpa

Nagios Cross-Platform Agent
Other
176 stars 95 forks source link

Manually removing the configuration files on Debian breaks future installs #1065

Closed ne-bbahn closed 6 months ago

ne-bbahn commented 7 months ago

If you manually remove the configuration files, it won't replace them when you install in the future even if you apt/apt-get remove ncpa. This is trying to fix that. I'm still getting a chown error, but the files are being replaced. I'd like to figure out and get rid of the error before merging this.

pittagurneyi commented 7 months ago

What kind of chown error do you get and from which line?

cp -p tries to preserve mode, ownership and timestamps. Ownership and permissions are already determined at the end of the file - correct? i haven't written debian installer files - and the user that installs it is probably not the correct final one anyways. So, either use install or just copy it without preserving permissions? But this is just me guessing at what the problem/cause is.