Detect C5 version from command line?
Permalink
Hello,
I work at a company that maintains a few dozen C5 sites for various people. I was asked to take inventory of all of them and see which need to be upgraded.
Is there an easy way to programatically (using command line perl/php/bash) detect a C5 install and determine its version? Maybe this means using the API, but hopefully there is a handy file I can grep.
Anyone every had to do something similar?
I work at a company that maintains a few dozen C5 sites for various people. I was asked to take inventory of all of them and see which need to be upgraded.
Is there an easy way to programatically (using command line perl/php/bash) detect a C5 install and determine its version? Maybe this means using the API, but hopefully there is a handy file I can grep.
Anyone every had to do something similar?
If they're all installs after 5.4.0, you can just look for the contents of concrete/config/version.php. It's a PHP file so you can just execute it but it's easy to parse.
If you're a design shop and you don't easily have filesystem access to the sites you can do
curl -s www.site.com | grep generator