Control Web Panel

WebPanel => Installation => Topic started by: Joe@Nerdster on October 07, 2016, 01:57:00 AM

Title: CWP Version
Post by: Joe@Nerdster on October 07, 2016, 01:57:00 AM
Hi All,

Is there a command that can be run from the shell to determine what version of CWP is currently running on a server?

Thanks in Advance
Joe
Title: Re: CWP Version
Post by: MyBuddyBen on October 10, 2016, 06:21:11 PM
I'm not sure about doing it with Shell, But I know you can login with any CWP user and scroll to bottom-right side and see the current version.
Title: Re: CWP Version
Post by: Igor S. on October 28, 2016, 10:05:50 AM
Hello, no. You can check the CWP version in the panel only.
Title: Re: CWP Version
Post by: mark012492 on March 21, 2017, 05:18:25 PM
You can view the version by checking the file /usr/local/cwpsrv/htdocs/resources/admin/include/version.php
Code: [Select]
[root@server]# cat /usr/local/cwpsrv/htdocs/resources/admin/include/version.php
<?php
$webpanel_version 
"0.9.8.153";
?>

If you just want version number
Code: [Select]
grep version /usr/local/cwpsrv/htdocs/resources/admin/include/version.php| awk '{print $NF}'| tr -d '"|;'
Example Output:
Code: [Select]
[root@server]# grep version /usr/local/cwpsrv/htdocs/resources/admin/include/version.php| awk '{print $NF}'| tr -d '"|;'
0.9.8.153


This may or may not work in future releases.