openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
818 stars 251 forks source link

Add function to check GPG expiry date #1796

Closed BClark09 closed 11 months ago

BClark09 commented 11 months ago

Adds a helper function for checking the expiry date of a key.

Uses the helper function to check for updates to openHAB's public key on launch of openHABian config.

BClark09 commented 11 months ago

Ready for review now, I've been able to test this using a git cloned openHABian instance. But not been able to test on an openHABian image.

BClark09 commented 11 months ago

Thanks @mstormi, I'm assuming users will need to just launch sudo openhabian-config once and it will first run the update, and then execute the new lines? (I really need to find an empty Pi to use as a test unit ;) ).

mstormi commented 11 months ago

Check the automated GH checks (virtual deployments) it must be visible somewhere in there, too.

BClark09 commented 11 months ago

It doesn't look like they test the openHABian menu.

I was able to find a Pi and and SD card to test it on, works well (see below) but you need to switch to the "latest" branch. Will there be an openHABian release before the 24th?

openHABian configuration tool successfully updated.
Visit the development repository for more details: https://github.com/openhab/openhabian
The tool will now restart to load the updates... OK
2023-07-14_13:23:47_CEST [openHABian] Checking for root privileges... OK
2023-07-14_13:23:48_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2023-07-14_13:23:48_CEST [openHABian] openHABian configuration tool version: [main]{2023-07-13T12:00:09+02:00}(f0ca27d)
2023-07-14_13:23:48_CEST [openHABian] Checking for changes in origin branch main... OK
2023-07-14_13:23:48_CEST [openHABian] Switching to branch main... OK
2023-07-14_13:23:48_CEST [openHABian] Checking openHAB Signing Key expiry.
2023-07-14_13:23:48_CEST [openHABian] Checking expiry date of apt keys... gpg: /root/.gnupg/trustdb.gpg: trustdb created
OK
mstormi commented 11 months ago

I ll forward latest (main) branch to Standard  is no releaseAm 14.07.2023 13:27 schrieb Ben Clark @.***>: It doesn't look like they test the openHABian menu. I was able to find a Pi and and SD card to test it on, works well but you need to switch to the "latest" branch. Will there be an openHABian release before the 24th?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>