Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : CLI - Determine if script enabled, or get list of all scripts + status



Threaded Mode | Print  

 CLI - Determine if script enabled, or get list of all scripts + status (1 Replies, Read 16156 times)
key-systems-plugin
Group: NOC
Post Group: Newbie
Posts: 1
Status:
Using cPanel, I need to determine if a script is enabled, and disable it if it is.

I need to be able to do this via CLI across hundreds of servers, and I need to be able to viably automate this with puppet.

I have determined that I can disable the scripts using the Softaculous cli.php file via:
Code

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cli.php --disable_script --sid=<SID>


Where <SID> can be determined by:
Code

curl -sv http://api.softaculous.com/scripts.php?in=json | jq '.[] | select(.name | test("^<APPNAME>";"i")) | .sid'


However, in order to prevent subsequent calls to disable_script from being run, I need a way to determine the script status.

How can I do that?
IP: --   

CLI - Determine if script enabled, or get list of all scripts + status
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5652
Status:
Hi,

You can find the list of enabled scripts in the following PHP file :
/usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/iscripts.php

Do let us know if you face any issues.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 27, 2024, 12:17 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.022