Auto update check, checks for updates to base system + packages and sends email alerts
-
@Gertjan
Thanks for the Notes suggestion. I lost a few packages recently and been thinking about creating a pfsense logbook since it looks like some packages in Package Manager don’t get included in backups and I’m willing to bet custom packages that aren’t in package manager won’t be either. This looks like it’s perfect for that. -
@stephenw10
can we make it a package my good sir? -
Mmm, I was just thinking that as I wrote it.
No developer time right now though, it would have to be a user PR. For now at least.
-
One tiny PHP file ?
( and a cron entry, which somewhat forces you also to install the Cron package)The overhead of 'official' package maintenance will be way bigger as the 80 or so lines.
Let's keep this the 'read the forum and you'll find a nice hidden forum package ^^' suggestion.
Or : the official way : go here.
It already exists ....edit : Can some one bake this into a System_patch ? I wonder if writing in cron file /etc/cron.d./ for a cron entry would do the trick ....
edit : but actually, it should be here :
Just a button or a set of buttons, one for each notification method, that says :
Do you want to receive a notification when a pfSense upgrade, a pfSense package or a 'core' FreeBSD update is available ?
As soon as one of the notification methods is selected, the cron gets inserted, etc.
edit :
Ok, just for the fun : -
@Gertjan in my mind , an official way of getting notifications of updates is/should be the required way.
-
This awesome script is only in the forums and not documented in any official capacity.
-
We shouldn’t expect admins to muck around in the filesystem
I’m glad there is a redmine. Maybe one day…..
-
-
@michmoor said in Auto update check, checks for updates to base system + packages and sends email alerts:
This awesome script is only in the forums and not documented in any official capacity.
True.
I'm feeling 'protected' as I'm pretty sure people like jimp would have posted : "don't do this" if these '80 lines' had the slightest effect on security or whatever -
@Gertjan said in Auto update check, checks for updates to base system + packages and sends email alerts:
I'm feeling 'protected' as I'm pretty sure people like jimp would have posted : "don't do this" if these '80 lines' had the slightest effect on security or whatever
I get the concern but then they should ack the redmine. Been noticing a troubling trend around unassigned/unack tickets....
-
-
-
Fantastic script, and I had no idea about Filer, so easy to setup, just copied the raw code from the gist and used 0755 permissions.
This should definitely be part of the base pfsense configuration.
-
This :
will run the script .... when ... ones ?
You still have to :
Make sure your have the pfSense Cron Package.
Add a cron task that execute the script ones every - when ever you want - per day (week ? month ? hours ?).
And of course, test it and check up with it ones in a while. -
Yes that will run it once but you shouldn't need that. The field allows Filer to run a command after it has added back a file which may be required. This script doesn't need it though. It's run by cron anyway.
-
@Gertjan Yup I setup CRON to run every night.
-
-