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
Threaded Mode
|
Print
CLI - Determine if script enabled, or get list of all scripts + status (1 Replies, Read 16571 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:
--
CLI - Determine if script enabled, or get list of all scripts + status
Brijesh
#
February 13, 2023, 1:34 pm | Post: 1
Group:
Softaculous Team
Post Group: Super Member
Posts: 5677
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 :
Select a location to go to :
Home
Softaculous Inc.
|--News and Announcements
Softaculous Auto Installer
|--General Support
|--Suggestions
|--Languages and International Support
|--Themes and skins
|--Bugs
SitePad Website Builder
|--General Support
|--Suggestions
Pagelayer and PopularFX for WordPress
|--PopularFX
|--Pagelayer
Virtualizor - Virtual Server Control Panel
|--Pre-Sales
|--General Support
|--Languages and International Support
|--Suggestions
|--Bugs
Webuzo
|--General Support
|--Suggestions
|--Bugs
AMPPS
|--General Support
|--Suggestions
|--Bugs
General Stuff
|--General Discussions
|--Introduce Yourself
Users viewing this topic
1 guests, 0 users.
All times are GMT. The time now is June 17, 2024, 12:55 am.
Powered By AEF 1.0.8
© 2007-2008
Electron Inc.
Queries: 11 | Page Created In:6.004