apatel762 / home-infra

A repository containing all of the setup for my home infra (e.g. my laptop & soon, my server)
GNU Affero General Public License v3.0
0 stars 0 forks source link

Add configuration drift checker to bash init scripts #87

Open apatel762 opened 2 years ago

apatel762 commented 2 years ago

the approach would be something like

if so, warn the user to git pull and re-apply the playbook config

could make this into a systemd unit that runs in the background, but not sure if notifications would work (e.g. via notify-send - https://old.reddit.com/r/linux/comments/ea2qo/my_bash_scripts_just_got_so_much_cooler_i_just/c16j1zc/)

apatel762 commented 2 years ago

https://wiki.archlinux.org/title/Desktop_notifications#Bash

Some documentation about scripting desktop notifications in bash. Need a way of reliably getting the user id and username for the user that we are installing our systemd service for, or else the notifications won't work

apatel762 commented 2 years ago

not sure how this would work actually, because I would need my ssh keys to be loaded for the git fetch to even work