Added JPS remove ssl

main
Anthony 2025-03-22 02:22:40 +08:00
parent 0c089d7b07
commit bafe7c4092
1 changed files with 25 additions and 0 deletions

View File

@ -137,6 +137,12 @@ menu:
action: check_domain_ip
settings: checkDomainConfig
successText: "${response.out}"
- confirmText: Are you sure you want to remove SSL certificate(s)?
loadingText: Removing SSL Certificate(s)...
caption: Remove SSL Certificate
action: remove_ssl_cert
settings: sslRemoveConfig
successText: "${response.out}"
settings:
checkDomainConfig:
@ -256,6 +262,13 @@ settings:
type: text
caption: Email Address
required: true
sslRemoveConfig:
submitUnchanged: true
fields:
- name: domains
type: text
caption: Comma-separated Domains
required: true
actions:
dynamic_wp_cli:
@ -570,6 +583,14 @@ actions:
- return:
type: info
message: "${response.out}"
remove_ssl_cert:
- cmd[cp]:
user: root
commands:
- bash /home/litespeed/mbmanager/ssl-manager/ssl_remover.sh --domains="${settings.domains}" ${EMAIL:+--email="${EMAIL}"}
- return:
type: info
message: "${response.out}"
responses:
enableSuccess:
@ -599,6 +620,10 @@ buttons:
action: litespeed_update_settings
caption: Update LiteSpeed Cache Settings
submitButtonText: Update Cache Settings
- settings: sslRemoveConfig
action: remove_ssl_cert
caption: Remove SSL Certificates
submitButtonText: Remove Certificates
onUninstall:
- cmd[cp]: