./build versions more user friendly

Suurbier

Verified User
Joined
Apr 23, 2007
Messages
224
Maybe it is a good idea to improve the output of build versions, now it shows
Code:
Latest version of RoundCube webmail: 0.7.2
Installed version of RoundCube webmail: 0.7.2

Latest version of phpMyAdmin: 3.5.1-all-languages
Installed version of phpMyAdmin: 3.5.1-all-languages

Latest version of SquirrelMail: 1.4.22
Installed version of SquirrelMail: 1.4.22
If something is ready for an update you need to scroll to see if something is ready to update. Maybe it is a better idea to throw out a last line with the number of updates like this
Code:
Latest version of RoundCube webmail: 0.7.2
Installed version of RoundCube webmail: 0.7.2

Latest version of phpMyAdmin: 3.5.1-all-languages
Installed version of phpMyAdmin: 3.5.1-all-languages

Latest version of SquirrelMail: 1.4.22
Installed version of SquirrelMail: 1.4.22

1 update(s) found, run ./build update_versions to update

It is very easy to add this feature and helps a lot of administrators that manually need to check and update DA servers.
 
Maybe it is a good idea to improve the output of build versions, now it shows
Code:
Latest version of RoundCube webmail: 0.7.2
Installed version of RoundCube webmail: 0.7.2

Latest version of phpMyAdmin: 3.5.1-all-languages
Installed version of phpMyAdmin: 3.5.1-all-languages

Latest version of SquirrelMail: 1.4.22
Installed version of SquirrelMail: 1.4.22
If something is ready for an update you need to scroll to see if something is ready to update. Maybe it is a better idea to throw out a last line with the number of updates like this
Code:
Latest version of RoundCube webmail: 0.7.2
Installed version of RoundCube webmail: 0.7.2

Latest version of phpMyAdmin: 3.5.1-all-languages
Installed version of phpMyAdmin: 3.5.1-all-languages

Latest version of SquirrelMail: 1.4.22
Installed version of SquirrelMail: 1.4.22

1 update(s) found, run ./build update_versions to update

It is very easy to add this feature and helps a lot of administrators that manually need to check and update DA servers.

Code:
cd /usr/local/directadmin/custombuild
./build update
./build versions | grep available
 
Code:
cd /usr/local/directadmin/custombuild
./build update
./build versions | grep available

That works, but it would be more user friendly if the last line shows the available updates (or count).
 
It might be a bit user friendly, but how many users use this console option to check updates?
If you enable the crontab in options.conf you will get an email showing available updates (and versions) when present.
 
That works, but it would be more user friendly if the last line shows the available updates (or count).
There are many solutions for that, you can use earlier commands to get the list plus the following one to get the "count":
Code:
echo "(`./build versions | grep available | wc -l`) updates are available"
 
It might be a bit user friendly, but how many users use this console option to check updates?
If you enable the crontab in options.conf you will get an email showing available updates (and versions) when present.

I don't use automatic updates, I like to do it manually, sometimes there are troubles with new updates so I always check the forum first.

There are many solutions for that, you can use earlier commands to get the list plus the following one to get the "count":
Code:
echo "(`./build versions | grep available | wc -l`) updates are available"

I think you misunderstood me, I ment showing the updates at the last line of the ./build versions parameter (without anything extra). You're doing so much for the community, I really appreciate that. I am going to write a bash script with the samples you gave me.
 
Back
Top