openhab / openhab-linuxpkg

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

Add reset commands to openhab-cli #104

Closed BClark09 closed 1 year ago

BClark09 commented 6 years ago

Two commands would be useful here:

One that resets the files in userdata/etc to the packaged versions. Possibly by deleting them then restoring them with conf-miss (and whatever the rpm equivalent is)

One that resets ownership of everything to openhab:openhab @ThomDietrich, I understand that openhabian already does this. Would it make sense to reuse code here?

ThomDietrich commented 6 years ago

(1) sounds meaningful 👍

(2) openHABian does a bit more than that because it also makes sure that the user has write access regardless how the last change happened. https://github.com/openhab/openhabian/blob/master/functions/system.sh#L159

BClark09 commented 1 year ago

The need for (1) is not longer necessary as we have reduced the number of configuration files in userdata/etc.

(2) has been implements with openhab-cli reset-ownership which can be run by APT/YUM users and won't break anything offered by openHABian.