openhab / openhab-linuxpkg

Repo for Linux packages
Eclipse Public License 2.0
18 stars 33 forks source link

files (re-)installation #185

Closed mstormi closed 3 years ago

mstormi commented 3 years ago

I used to remove /etc/default/openhab2, uninstalled (apt remove) and re-installed the openhab2 package but the file was not installed again. I haven't tried the same with other files but wouldn't think that is intentional ?

BClark09 commented 3 years ago

Hi @mstormi, sorry I've just seen this.

This is normal behaviour of APT (dpkg). Deleting a file is seen as a configuration of that file so by default dpkg does not try to replace it.

sudo apt install --reinstall -o Dpkg::Options::="--force-confmiss" openhab2

(openhab for OH3)