jina verze

This commit is contained in:
2026-08-12 10:53:04 +02:00
parent f186ec26a8
commit 93d4f24f07
43 changed files with 1686 additions and 1959 deletions
+49 -52
View File
@@ -3,14 +3,14 @@ function cmdHelpPrint() {
}
function cmdHelpK3S() {
local title="-k|--k3s <action>"
local title="-k|--k3s <action> [option]"
local desc="
create - create all resources in k3s
remove - remove all resources in k3s
info - detail about a k3s
status - status about a k3s
top - top pod
res [<resource>] - get resource info (all|pod|event|pv|pvc|deploy|ds|rs|sts|svc|ing|ip|secret|cm|job|cj|ep|no|ns|cs|netpol)"
res [resource] - get resource info (all|pod|event|pv|pvc|deploy|ds|rs|sts|svc|ing|ip|secret|cm|job|cj|ep|no|ns|cs|netpol)"
cmdHelpPrint "$title" "$desc"
}
@@ -26,8 +26,8 @@ function cmdHelpMariaDB() {
replica - replica rebuild
database - database list
user - user list
dump [all|<database>] [<file>] - dump specified database or all databases from Master
dump_slave [<file>] - full dump from Slave"
dump [all|<database>] [file] - dump specified database or all databases from Master
dump_slave [file] - full dump from Slave"
cmdHelpPrint "$title" "$desc"
}
@@ -50,21 +50,22 @@ function cmdHelpRedis() {
function cmdHelpOpenLiteSpeed() {
local title="-o|--ols <action>"
local desc="
install - install OpenLiteSpeed in k3s
update - update OpenLiteSpeed in k3s
uninstall - uninstall OpenLiteSpeed from k3s
info - detail about a OpenLiteSpeed
list <option> - vhost list (all|up|down)
up - unpause vhost
down - pause vhost
alias - set aliases for domain
restart - restart OLS (graceful restart)
php_kill all|<domain> - kill lsphp for domain or all domains
white_list - WebAdmin white list update
allow_list - WebAdmin allow list update
install - install OpenLiteSpeed in k3s
update - update OpenLiteSpeed in k3s
uninstall - uninstall OpenLiteSpeed from k3s
info - detail about a OpenLiteSpeed
list <option> - vhost list (all|up|down)
up - unpause vhost
down - pause vhost
alias - set aliases for domain
restart - restart OLS (graceful restart)
restart_php - restart PHP
kill_php - kill PHP (hard restart)
white_list - WebAdmin white list update
allow_list - WebAdmin allow list update
alias_list all|<domain> - get aliases for domain or all domains
rebuild all|<domain> - rebuild owner and permission files
config - check config $olsConfigFile"
config - check config $openlitespeedConfigFile"
cmdHelpPrint "$title" "$desc"
}
@@ -72,13 +73,14 @@ function cmdHelpOpenLiteSpeed() {
function cmdHelpPostfix() {
local title="-p|--postfix <action>"
local desc="
install - install Postfix in k3s
update - update Postfix in k3s
uninstall - uninstall Postfix from k3s
info - detail about a Postfix
status - status about a Postfix
user - user list (SASL)
dkim [<domain>] - autocreate and display DKIM key for DNS record or all domains !!!"
install - install Postfix in k3s
update - update Postfix in k3s
uninstall - uninstall Postfix from k3s
info - detail about a Postfix
list <option> - list (domain|alias|senders|sasl) !!!!
domain <domain> - add domain
alias <domain> <email> - set alias for domain
dkim [domain] - autocreate and display DKIM key for DNS record or all domains !!!"
cmdHelpPrint "$title" "$desc"
}
@@ -89,10 +91,10 @@ function cmdHelpWorker() {
install - install Worker in k3s
update - update Worker in k3s
uninstall - uninstall Worker from k3s
task <file> [domain] - Execute task !!!!!
list - task list
down - stop receiving new tasks from the API (pause)
up - start receiving new tasks from the API (unpause)
task <file> [<domain>] - Execute task !!!!!"
up - start receiving new tasks from the API (unpause)"
cmdHelpPrint "$title" "$desc"
}
@@ -111,8 +113,8 @@ function cmdHelpMetric() {
function cmdHelpSite() {
local title="-s|--site <action>"
local desc="
add <domain> [<pathF>] [<pathD>] - add site (pathF: source files | pathD: source database)
add_wp|wp <domain> [<pathF>] [<pathD>] - add site on Wordpress
add <domain> [pathF] [pathD] - add site (pathF: source files | pathD: source database)
add_wp|wp <domain> [pathF] [pathD] - add site on Wordpress
remove <domain> [-f|--force] - site full remove (-f|--force - forced mode)
copy <domain> <domainNew> - create copy of site
rename <domain> <domainNew> - rename of site
@@ -122,7 +124,7 @@ function cmdHelpSite() {
rebuild_wp <domain> - rewrite config connection to internal services in bootstrap.php
reset_pass all|<domain> - reset ALL passwords for domain or all domains
reset_auth all|<domain> - reset ALL authentication settings for domain or all domains
dump <domain> [<file>] - dump database of site"
dump <domain> [file] - dump database of site"
cmdHelpPrint "$title" "$desc"
}
@@ -133,8 +135,7 @@ function cmdHelpWP() {
user <domain> - user list
pass <domain> <user> <pass> - user password set
salt all|<domain> - shuffle salts
check all|<domain> - check core and plugins
exec all|<domain> <command> - command exec"
exec <domain> <command> - command exec"
cmdHelpPrint "$title" "$desc"
}
@@ -162,27 +163,24 @@ function cmdHelpCron() {
}
function cmdHelpBackup() {
local title="--backup <action>"
local title="-b|--backup <target> [path] [type]"
local path=$(backupPathGenerate)
local desc="
run all|<domain> [<path>] [<type>] - backup
path: path to save backup, default: autogenerate
type: type backup (zip|tar|archive|rsync), default: $backupType
list - list backups on local
size - list of backup sizes"
target - all|<domain>
path - path to save backup, default value: $path (autogenerate)
type - type backup (zip|tar|archive|rsync), default value: $backupType"
cmdHelpPrint "$title" "$desc"
}
function cmdHelpRestore() {
local title="--restore <domain> $fontRed[NO TESTED!]$fornReset"
local title="--restore <domain> [option] [NO TESTED!]"
local desc="
run <domain> [<option>] - manual site restore
<empty> - manual site restore
list - display a list of available markers for restore
last - automatic site restore from the last backup
full - automatic site restore from the last FULL backup
auto - automatic site restore from the last FULL backup or the last backup
N - automatic site restore from the last backup #N (N: 1+)"
<domain> - manual site restore
<domain> list - display a list of available markers for restore
<domain> last - automatic site restore from the last backup
<domain> full - automatic site restore from the last FULL backup
<domain> auto - automatic site restore from the last FULL backup or the last backup
<domain> N - automatic site restore from the last backup #N (N: 1+)"
cmdHelpPrint "$title" "$desc"
}
@@ -192,7 +190,6 @@ function cmdHelpStorage() {
local desc="
list - list backups on external storage
compare - comparison table
size - list of backup sizes
sync <type> - synchronization with external storage (archive|daily)
remove - remove backups on external storage"
@@ -216,7 +213,7 @@ function cmdHelpScript() {
}
function cmdHelpTest() {
local title="--test <action> $fontRed[NO TESTED!]$fornReset"
local title="--test <action> [NO TESTED!]"
local desc="
mariadb - test MariaDB replica
redis - test Redis cluster
@@ -229,9 +226,9 @@ function cmdHelpTest() {
function cmdHelpMalware() {
local title="--malware <action>"
local desc="
plugin - check plugins (files) in all vhosts
user - check users Wordpress in all vhosts
file all|<domain> - check files"
muplugin - check MU plugins (files) in all vhosts
user - check users Wordpress in all vhosts
file all|<domain> - check files"
cmdHelpPrint "$title" "$desc"
}
@@ -301,7 +298,7 @@ function cmdHelp() {
printDotFix 20 "$fontBlue --log" "Log of pods"
printDotFix 20 "$fontBlue --describe" "Describe of pods"
printDotFix 20 "$fontBlue --delete" "Delete pods"
printDotFix 20 "$fontBlue --backup" "Create backup of sites"
printDotFix 20 "$fontBlue -b|--backup" "Create backup of sites"
printDotFix 20 "$fontBlue --restore" "Restore sites from backups"
printDotFix 20 "$fontBlue --storage" "Copy backups to storage"
printDotFix 20 "$fontBlue --script" "Execute scripts"