Auto-shutdown Bash Script (Opinions Sought)

pete2k21

Member
Aug 21, 2021
1
0
6
solderintheveins.co.uk
Hi,

First post here. I created a quick Bash script to shutdown a Proxmox VE instance when mains power is lost and the battery falls below a certain percentage. It also (optionally) sends out an alert via Email or Pushover.

Link to my Blog article about it is here where I give a brief explanation of why I would choose to run Proxmox on a laptop (other than me being nuts.)

If you'd rather not visit some rando's blog, the Github Gist can be found here

This is just a proof-of-concept at the moment and would appreciate ideas to improve on it from the community.