How to check updates programmatically?

Post Reply
geekytone
Junior Member
Posts: 23
Joined: 04 Aug 2020, 13:58

How to check updates programmatically?

Post by geekytone »

Good morning,

I'm at this time writting an update script and wish to integrate CSF update inside this update script. Is there a way to check updates of CSF throught a BASH script?
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: How to check updates programmatically?

Post by ForumAdmin »

Code: Select all

csf -c
will indicate whether there is an update. Lower the value in /etc/csf/version.txt to test.
geekytone
Junior Member
Posts: 23
Joined: 04 Aug 2020, 13:58

Re: How to check updates programmatically?

Post by geekytone »

Good morning,

Thank you, it works very well. But how to launch the update process?
Post Reply