ImFilippo

Results 7 comments of ImFilippo

> Look at DPkg::Post-Invoke and APT::Update::Post-Invoke And what script should i run after that two commands?

> Something that sends you a notification. Thanks, up to this point I was there... I can't write a script and was wondering if there was something reusable with some...

> Example: https://gotify.net/docs/pushmsg > > https://gotify.net/docs/more-pushmsg I could use a bash script with DPkg::Post-Invoke, but how can i list all upgraded programs? ``` #!/bin/bash TITLE="unattended-upgrades" MESSAGE="Upgraded Programs: ![](https://gotify.net/img/logo.png)" PRIORITY=5 URL="http://localhost:8008/message?token="...

> For a markdown message, edit your above script with Something like this? `DPkg::Post-Invoke {"/home/script/gotify-update.sh";};` Script (gotify-update.sh) ``` #!/bin/bash TITLE="unattended-upgrades" PRIORITY=5 URL="http://localhost:8008/message?token=" curl -s -S --data '{"MESSAGE=$(cat /var/log/unattended-upgrades/unattended-upgrades.log | grep...

> Sure, but this curl command will not include the TITLE or PRIORITY you assigned. I think they are optional, however. You also need to replace `` with your actual...

> Everything is right, you just didn't define PRIORITY. > > When I run your script, with just the addition of > > ``` > PRIORITY=5 > ``` > >...

Thank you a lot, now everything is working!