Welcome
Guest. Please
Login
or
Register
Client Area
|
Softaculous Cloud
|
Calendar
|
Quick Links
|
You are here:
Index
>
Softaculous Auto Installer
>
General Support
> Topic :
CLI - Determine if script enabled, or get list of all scripts + status
Normal Mode
|
Print
CLI - Determine if script enabled, or get list of all scripts + status (1 Replies, Read 26095 times)
key-systems-plugin
February 13, 2023, 2:52 am
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:
--
Threads
key-systems-plugin
CLI - Determine if script enabled, or get list of all scripts + status
(1 Replies, Read 26095 times)
|--
Brijesh
Hi, You can...
on February 13, 2023, 1:34 pm
« Previous
Next »
Normal Mode
|
Print
Users viewing this topic
1 guests, 0 users.
All times are GMT. The time now is September 20, 2024, 4:05 pm.
Powered By AEF 1.0.8
© 2007-2008
Electron Inc.
Queries: 10 | Page Created In:0.033