cldetect

Navigation:  Limits > Command-line Tools >

cldetect

Previous pageReturn to chapter overviewNext page

[lve-utils 1.2-10+]

 

cldetect is used to detect installed software, and adjust CloudLinux options accordingly.

 

Usage: /usr/bin/cldetect [--options]

 

cldetect -h

-h | --help                              show this message

     --detect-cp                         prints control panel and its version (CP_NAME,CP_VERSION)

     --detect-cp-full                    prints control panel, version and panel specific data (CP_NAME,CP_VERSION,...)

                                         Specific data: for ISP Manager5 - Master/Node

     --detect-cp-nameonly                prints control panel name (CP_NAME)

     --get-admin-email                   prints control panel admin email (CP_ADMIN_EMAIL)

     --cxs-installed                     check if CXS is installed. Returns 0 if installed, 1 otherwise

     --cpanel-suphp-enabled              check if suPHP is enabled in cPanel. Returns 0 if enabled, 1 otherwise

     --detect-litespeed                  check if LiteSpeed is installed. Returns 0 if installed, 1 otherwise

     --detect-postgresql                 check if PostGreSQL is installed. Returns 0 if installed, 1 otherwise

     --print-apache-gid                  prints current apache gid

     --print-da-admin                    prints DirectAdmin admin user

     --set-securelinks-gid               changes /etc/sysctl.conf if apache gid != 48 (default)

     --set-nagios                        changes /etc/sysctl.conf if nagios is installed

     --cl-setup                          check if CloudLinux is installing. Returns 0 if installing, 1 otherwise

     --update-license                    updates license

     --update-new-key                    updates license with new key

     --check-license                 :   check license. Returns OK if license is not older than 3 days, error message otherwise

                                   -q:   check license. Returns 0 if license is not older than 3 days, 1 otherwise

     --no-valid-license-screen           Returns no valid license found screen.

     --license-out-of-date-email         Returns License out of Date Email.

     --check-openvz                      Returns enviroment id.