Jelajahi Sumber

Add new examples + small changes

Jaap Marcus 5 tahun lalu
induk
melakukan
a37df28fe4
100 mengubah file dengan 223 tambahan dan 27 penghapusan
  1. 3 1
      bin/v-acknowledge-user-notification
  2. 2 2
      bin/v-add-dns-domain
  3. 2 0
      bin/v-add-firewall-ipset
  4. 1 1
      bin/v-add-mail-account
  5. 4 0
      bin/v-add-remote-dns-host
  6. 2 0
      bin/v-add-sys-firewall
  7. 3 0
      bin/v-add-sys-quota
  8. 2 0
      bin/v-add-sys-sftp-jail
  9. 5 0
      bin/v-add-sys-theme
  10. 2 0
      bin/v-add-sys-webmail
  11. 2 0
      bin/v-add-user-composer
  12. 2 0
      bin/v-add-user-ssh-key
  13. 2 0
      bin/v-add-web-php
  14. 2 0
      bin/v-backup-users
  15. 3 1
      bin/v-change-user-php-cli
  16. 3 1
      bin/v-change-user-role
  17. 1 1
      bin/v-change-web-domain-backend-tpl
  18. 2 0
      bin/v-change-web-domain-dirlist
  19. 2 0
      bin/v-check-api-key
  20. 2 0
      bin/v-copy-user-package
  21. 1 1
      bin/v-delete-cron-hestia-autoupdate
  22. 2 0
      bin/v-delete-firewall-ipset
  23. 2 0
      bin/v-delete-mail-domain-ssl
  24. 2 0
      bin/v-delete-sys-filemanager
  25. 2 0
      bin/v-delete-sys-firewall
  26. 2 0
      bin/v-delete-sys-quota
  27. 2 0
      bin/v-delete-sys-sftp-jail
  28. 5 2
      bin/v-delete-sys-theme
  29. 2 0
      bin/v-delete-sys-webmail
  30. 2 0
      bin/v-delete-user-log
  31. 1 1
      bin/v-delete-user-notification
  32. 3 2
      bin/v-delete-user-ssh-key
  33. 2 0
      bin/v-delete-web-domain-ssl-hsts
  34. 2 0
      bin/v-delete-web-php
  35. 2 0
      bin/v-download-backup
  36. 2 0
      bin/v-generate-api-key
  37. 2 0
      bin/v-get-sys-timezones
  38. 2 0
      bin/v-list-database-hosts
  39. 2 0
      bin/v-list-database-types
  40. 2 0
      bin/v-list-databases
  41. 2 0
      bin/v-list-dns-templates
  42. 2 0
      bin/v-list-firewall
  43. 2 0
      bin/v-list-firewall-ban
  44. 2 0
      bin/v-list-firewall-ipset
  45. 2 0
      bin/v-list-mail-domain-ssl
  46. 2 0
      bin/v-list-remote-dns-hosts
  47. 2 0
      bin/v-list-sys-clamd-config
  48. 2 0
      bin/v-list-sys-config
  49. 2 0
      bin/v-list-sys-cpu-status
  50. 2 0
      bin/v-list-sys-db-status
  51. 2 0
      bin/v-list-sys-disk-status
  52. 2 0
      bin/v-list-sys-dns-status
  53. 2 0
      bin/v-list-sys-dovecot-config
  54. 3 1
      bin/v-list-sys-hestia-autoupdate
  55. 2 0
      bin/v-list-sys-hestia-ssl
  56. 2 0
      bin/v-list-sys-hestia-updates
  57. 2 0
      bin/v-list-sys-info
  58. 2 0
      bin/v-list-sys-interfaces
  59. 2 0
      bin/v-list-sys-ips
  60. 5 3
      bin/v-list-sys-languages
  61. 2 0
      bin/v-list-sys-mail-status
  62. 2 0
      bin/v-list-sys-memory-status
  63. 2 0
      bin/v-list-sys-mysql-config
  64. 2 0
      bin/v-list-sys-network-status
  65. 2 0
      bin/v-list-sys-nginx-config
  66. 2 0
      bin/v-list-sys-pgsql-config
  67. 4 2
      bin/v-list-sys-php
  68. 2 0
      bin/v-list-sys-php-config
  69. 2 0
      bin/v-list-sys-proftpd-config
  70. 2 0
      bin/v-list-sys-rrd
  71. 3 1
      bin/v-list-sys-services
  72. 3 1
      bin/v-list-sys-shells
  73. 2 0
      bin/v-list-sys-spamd-config
  74. 3 1
      bin/v-list-sys-themes
  75. 2 0
      bin/v-list-sys-users
  76. 3 1
      bin/v-list-sys-vsftpd-config
  77. 3 1
      bin/v-list-sys-web-status
  78. 2 0
      bin/v-list-user-log
  79. 2 0
      bin/v-list-users
  80. 3 1
      bin/v-list-web-stats
  81. 2 0
      bin/v-list-web-templates
  82. 2 0
      bin/v-list-web-templates-backend
  83. 2 0
      bin/v-list-web-templates-proxy
  84. 2 0
      bin/v-rebuild-database
  85. 2 0
      bin/v-rebuild-mail-domain
  86. 4 2
      bin/v-rebuild-users
  87. 2 0
      bin/v-rebuild-web-domain
  88. 2 0
      bin/v-rebuild-web-domains
  89. 2 0
      bin/v-refresh-sys-theme
  90. 2 0
      bin/v-rename-package
  91. 2 0
      bin/v-restart-cron
  92. 2 0
      bin/v-restart-dns
  93. 2 0
      bin/v-restart-ftp
  94. 2 0
      bin/v-restart-mail
  95. 2 0
      bin/v-restart-proxy
  96. 2 0
      bin/v-restart-service
  97. 2 0
      bin/v-restart-web
  98. 2 0
      bin/v-restart-web-backend
  99. 2 0
      bin/v-run-cli-cmd
  100. 2 0
      bin/v-schedule-user-backup-download

+ 3 - 1
bin/v-acknowledge-user-notification

@@ -1,7 +1,9 @@
 #!/bin/bash
 #!/bin/bash
 # info: update user notification
 # info: update user notification
 # options: USER NOTIFICATION
 # options: USER NOTIFICATION
-# labels: 
+# labels: panel
+#
+# example: v-acknowledge-user-notification
 #
 #
 # The function updates user notification.
 # The function updates user notification.
 
 

+ 2 - 2
bin/v-add-dns-domain

@@ -1,9 +1,9 @@
 #!/bin/bash
 #!/bin/bash
 # info: add dns domain
 # info: add dns domain
-# options: USER DOMAIN IP [NS1] [NS2] [NS3] [..] [NS8] [RESTART]
+# options: USER DOMAIN IP [NS1] [NS2] [NS3] [NS4] [NS5] [NS6] [NS7] [NS8] [RESTART]
 # labels: dns
 # labels: dns
 #
 #
-# example: v-add-dns-domain admin example.com ns1.example.com ns2.example.com yes
+# example: v-add-dns-domain admin example.com ns1.example.com ns2.example.com '' '' '' '' '' '' yes
 #
 #
 # The function adds DNS zone with records defined in the template. If the exp
 # The function adds DNS zone with records defined in the template. If the exp
 # argument isn't stated, the expiration date value will be set to next year.
 # argument isn't stated, the expiration date value will be set to next year.

+ 2 - 0
bin/v-add-firewall-ipset

@@ -3,6 +3,8 @@
 # options: NAME [SOURCE] [IPVERSION] [AUTOUPDATE] [FORCE]
 # options: NAME [SOURCE] [IPVERSION] [AUTOUPDATE] [FORCE]
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-add-firewall-ipset country-nl 'http://ipverse.net/ipblocks/data/countries/nl.zone'
+#
 # The function adds new ipset to system firewall
 # The function adds new ipset to system firewall
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#

+ 1 - 1
bin/v-add-mail-account

@@ -3,7 +3,7 @@
 # options: USER DOMAIN ACCOUNT PASSWORD [QUOTA]
 # options: USER DOMAIN ACCOUNT PASSWORD [QUOTA]
 # labels: mail
 # labels: mail
 #
 #
-# example: v-add-mail-account john example.com john P4$$vvOrD
+# example: v-add-mail-account user example.com john P4$$vvOrD
 #
 #
 # The function add new email account.
 # The function add new email account.
 
 

+ 4 - 0
bin/v-add-remote-dns-host

@@ -4,8 +4,12 @@
 # labels: dns
 # labels: dns
 #
 #
 # example: v-add-remote-dns-host slave.your_host.com 8083 admin your_passw0rd
 # example: v-add-remote-dns-host slave.your_host.com 8083 admin your_passw0rd
+# 
+# example: v-add-remote-dns-host slave.your_host.com 8083 api_key ''
 #
 #
 # The function adds remote dns server to the dns cluster.
 # The function adds remote dns server to the dns cluster.
+# As alternative api_key generated on the slave server.
+# See v-generate-api-key can be used to connect the remote dns server
 
 
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#

+ 2 - 0
bin/v-add-sys-firewall

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: 
 # labels: 
 #
 #
+# example: v-add-sys-firewall
+#
 # The script enables firewall
 # The script enables firewall
 
 
 
 

+ 3 - 0
bin/v-add-sys-quota

@@ -3,7 +3,10 @@
 # options: NONE
 # options: NONE
 # labels: 
 # labels: 
 #
 #
+# example: v-add-sys-quota
+#
 # The script enables filesystem quota on /home partition
 # The script enables filesystem quota on /home partition
+# Some kernels do require additional packages to be installed first
 
 
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#

+ 2 - 0
bin/v-add-sys-sftp-jail

@@ -3,6 +3,8 @@
 # options: [RESTART]
 # options: [RESTART]
 # labels: 
 # labels: 
 #
 #
+# example: v-add-sys-sftp-jail yes
+#
 # The script enables sftp jailed environment
 # The script enables sftp jailed environment
 
 
 
 

+ 5 - 0
bin/v-add-sys-theme

@@ -3,8 +3,13 @@
 # options: THEME [MODE] [ACTIVE]
 # options: THEME [MODE] [ACTIVE]
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-add-sys-theme myTheme local 
+#
 # The function for installing a custom theme or downloading one
 # The function for installing a custom theme or downloading one
 # from the HestiaCP theme repository.
 # from the HestiaCP theme repository.
+#
+# For more info see https://docs.hestiacp.com/customize_hestia.html
+
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 #                    Variable&Function                     #
 #                    Variable&Function                     #

+ 2 - 0
bin/v-add-sys-webmail

@@ -3,6 +3,8 @@
 # options: USER DOMAIN [RESTART] [QUIET]
 # options: USER DOMAIN [RESTART] [QUIET]
 # labels: hestia
 # labels: hestia
 #
 #
+# v-add-sys-webmail user domain.com
+#
 # this function adds support for webmail services
 # this function adds support for webmail services
 # to a mail domain.
 # to a mail domain.
 
 

+ 2 - 0
bin/v-add-user-composer

@@ -3,6 +3,8 @@
 # options: USER
 # options: USER
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-add-user-composer user
+#
 # The function adds support for composer (php dependency manager)
 # The function adds support for composer (php dependency manager)
 # Homepage: https://getcomposer.org/
 # Homepage: https://getcomposer.org/
 
 

+ 2 - 0
bin/v-add-user-ssh-key

@@ -3,6 +3,8 @@
 # options: USER KEY
 # options: USER KEY
 # labels: hestia
 # labels: hestia
 #
 #
+# example v-add-user-ssh-key user 'valid ssh key'
+#
 # Function check if $user/.ssh/authorized_keys exists and create it.
 # Function check if $user/.ssh/authorized_keys exists and create it.
 # After that it append the new key(s)
 # After that it append the new key(s)
 
 

+ 2 - 0
bin/v-add-web-php

@@ -3,6 +3,8 @@
 # options: VERSION
 # options: VERSION
 # labels: hestia
 # labels: hestia
 #
 #
+# example v-add-web-php 7.4
+#
 # The function checks and delete a fpm php version if not used by any domain.
 # The function checks and delete a fpm php version if not used by any domain.
 
 
 
 

+ 2 - 0
bin/v-backup-users

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: 
 # labels: 
 #
 #
+# example: v-backup-users
+#
 # The function backups all system users.
 # The function backups all system users.
 
 
 
 

+ 3 - 1
bin/v-change-user-php-cli

@@ -1,8 +1,10 @@
 #!/bin/bash
 #!/bin/bash
-# info: add php version to .bash_aliases
+# info: add php  version alias to .bash_aliases
 # options: USER VERSION
 # options: USER VERSION
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-change-user-php-cli user php7.4
+#
 # add line to .bash_aliases to set default php incase of multiPHP
 # add line to .bash_aliases to set default php incase of multiPHP
 
 
 
 

+ 3 - 1
bin/v-change-user-role

@@ -3,7 +3,9 @@
 # options: USER ROLE
 # options: USER ROLE
 # labels: hestia
 # labels: hestia
 #
 #
-# The function changes user's role.
+# v-change-user-role user administrator
+#
+# Give/revoke user administrator rights to manage all accounts as admin 
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 #                    Variable&Function                     #
 #                    Variable&Function                     #

+ 1 - 1
bin/v-change-web-domain-backend-tpl

@@ -3,7 +3,7 @@
 # options: USER DOMAIN TEMPLATE [RESTART]
 # options: USER DOMAIN TEMPLATE [RESTART]
 # labels: web
 # labels: web
 #
 #
-# example: v-change-web-domain-backend-tpl admin acme.com socket
+# example: v-change-web-domain-backend-tpl admin acme.com PHP-7_4
 #
 #
 # The function changes backend template
 # The function changes backend template
 
 

+ 2 - 0
bin/v-change-web-domain-dirlist

@@ -3,6 +3,8 @@
 # options: USER DOMAIN MODE
 # options: USER DOMAIN MODE
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-change-web-domain-dirlist user demo.com on
+#
 # The call is used for changing the directory list mode.
 # The call is used for changing the directory list mode.
 
 
 
 

+ 2 - 0
bin/v-check-api-key

@@ -3,6 +3,8 @@
 # options: KEY [IP]
 # options: KEY [IP]
 # labels: 
 # labels: 
 #
 #
+# v-check-api-key random_key
+#
 # The function checks a key file in $HESTIA/data/keys/
 # The function checks a key file in $HESTIA/data/keys/
 
 
 
 

+ 2 - 0
bin/v-copy-user-package

@@ -3,6 +3,8 @@
 # options: PACKAGE NEW_PACKAGE
 # options: PACKAGE NEW_PACKAGE
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-copy-user-package default new
+# 
 # The function allows the user to duplicate an existing
 # The function allows the user to duplicate an existing
 # package file to facilitate easier configuration.
 # package file to facilitate easier configuration.
 
 

+ 1 - 1
bin/v-delete-cron-hestia-autoupdate

@@ -1,7 +1,7 @@
 #!/bin/bash
 #!/bin/bash
 # info: delete hestia autoupdate cron job
 # info: delete hestia autoupdate cron job
 # options: NONE
 # options: NONE
-# labels: 
+# labels: hestia
 #
 #
 # The function deletes hestia autoupdate cron job.
 # The function deletes hestia autoupdate cron job.
 
 

+ 2 - 0
bin/v-delete-firewall-ipset

@@ -3,6 +3,8 @@
 # options: NAME
 # options: NAME
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-delete-firewall-ipset country-nl
+#
 # The function removes ipset from system and from hestia
 # The function removes ipset from system and from hestia
 
 
 
 

+ 2 - 0
bin/v-delete-mail-domain-ssl

@@ -3,6 +3,8 @@
 # options: USER DOMAIN
 # options: USER DOMAIN
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-delete-mail-domain-ssl user demo.com
+#
 # The function delete ssl certificates.
 # The function delete ssl certificates.
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#

+ 2 - 0
bin/v-delete-sys-filemanager

@@ -3,6 +3,8 @@
 # options: [FULL]
 # options: [FULL]
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-delete-sys-filemanager
+#
 # The function removes the File Manager and its entry points
 # The function removes the File Manager and its entry points
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#

+ 2 - 0
bin/v-delete-sys-firewall

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: panel
 # labels: panel
 #
 #
+# example: v-delete-sys-firewall
+#
 # The script disables firewall support
 # The script disables firewall support
 
 
 
 

+ 2 - 0
bin/v-delete-sys-quota

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: panel
 # labels: panel
 #
 #
+# example: v-delete-sys-quota
+#
 # The script disables filesystem quota on /home partition
 # The script disables filesystem quota on /home partition
 
 
 
 

+ 2 - 0
bin/v-delete-sys-sftp-jail

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: panel
 # labels: panel
 #
 #
+# v-delete-sys-ftp-jail 
+#
 # The script disables sftp jailed environment
 # The script disables sftp jailed environment
 
 
 
 

+ 5 - 2
bin/v-delete-sys-theme

@@ -1,9 +1,12 @@
 #!/bin/bash
 #!/bin/bash
 # info: removes a theme from the custom theme library
 # info: removes a theme from the custom theme library
-# options: [RESTART]
+# options: theme
 # labels: hestia
 # labels: hestia
 #
 #
-# The function removes a theme from the custom theme library.
+# v-delete-sys-theme dark
+#
+# The function removes a theme from the custom theme library. 
+# Please note "default" theme can't be deleted due to dependencies for other themes
 
 
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#

+ 2 - 0
bin/v-delete-sys-webmail

@@ -3,6 +3,8 @@
 # options: USER DOMAIN [RESTART] [QUIET]
 # options: USER DOMAIN [RESTART] [QUIET]
 # labels: hestia
 # labels: hestia
 #
 #
+# v-delete-sys-webmail user demo.com
+#
 # this function removes support for webmail from
 # this function removes support for webmail from
 # a specified mail domain.
 # a specified mail domain.
 
 

+ 2 - 0
bin/v-delete-user-log

@@ -3,6 +3,8 @@
 # options: USER
 # options: USER
 # labels: hestia
 # labels: hestia
 #
 #
+# v-delete-user-log user 
+#
 # The function for deleting a users log file
 # The function for deleting a users log file
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#

+ 1 - 1
bin/v-delete-user-notification

@@ -3,7 +3,7 @@
 # options: USER NOTIFICATION
 # options: USER NOTIFICATION
 # labels: panel
 # labels: panel
 #
 #
-# example: v-delete-user-notification admin "Hello, admin!"
+# example: v-delete-user-notification admin 1
 #
 #
 # The function deletes user notification.
 # The function deletes user notification.
 
 

+ 3 - 2
bin/v-delete-user-ssh-key

@@ -3,8 +3,9 @@
 # options: USER KEY
 # options: USER KEY
 # labels: hestia
 # labels: hestia
 #
 #
-# Function check if $user/.ssh/authorized_keys exists and create it.
-# After that it append the new key(s)
+# example: v-delelete-user-ssh-key user unique_id
+#
+# Delete user ssh key from authorized_keys
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 #                    Variable&Function                     #
 #                    Variable&Function                     #

+ 2 - 0
bin/v-delete-web-domain-ssl-hsts

@@ -3,6 +3,8 @@
 # options: USER DOMAIN [RESTART]
 # options: USER DOMAIN [RESTART]
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-delete-web-domain-ssl-hsts user domain.tld
+#
 # The function removes force SSL configurations.
 # The function removes force SSL configurations.
 
 
 
 

+ 2 - 0
bin/v-delete-web-php

@@ -3,6 +3,8 @@
 # options: VERSION
 # options: VERSION
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-delete-web-php 7.3
+#
 # The function checks and delete a fpm php version if not used by any domain.
 # The function checks and delete a fpm php version if not used by any domain.
 
 
 
 

+ 2 - 0
bin/v-download-backup

@@ -3,6 +3,8 @@
 # options: USER BACKUP
 # options: USER BACKUP
 # labels: hestia
 # labels: hestia
 #
 #
+# v-download-user admin admin.2020-11-05_05-10-21.tar
+#
 # The function download back-up from remote server
 # The function download back-up from remote server
 
 
 
 

+ 2 - 0
bin/v-generate-api-key

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: panel
 # labels: panel
 #
 #
+# example: v-generate-api-key 
+#
 # The function creates a key file in $HESTIA/data/keys/
 # The function creates a key file in $HESTIA/data/keys/
 
 
 
 

+ 2 - 0
bin/v-get-sys-timezones

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-get-sys-timezones
+#
 # The function checks system timezone settings
 # The function checks system timezone settings
 
 
 
 

+ 2 - 0
bin/v-list-database-hosts

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-database-hosts json
+#
 # The function for obtaining the list of all configured database hosts.
 # The function for obtaining the list of all configured database hosts.
 
 
 
 

+ 2 - 0
bin/v-list-database-types

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-database-types json
+#
 # The function for obtaining the list of database types.
 # The function for obtaining the list of database types.
 
 
 
 

+ 2 - 0
bin/v-list-databases

@@ -3,6 +3,8 @@
 # options: USER [FORMAT]
 # options: USER [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-databases user json
+#
 # The function for obtaining the list of all user's databases.
 # The function for obtaining the list of all user's databases.
 
 
 
 

+ 2 - 0
bin/v-list-dns-templates

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: dns
 # labels: dns
 #
 #
+# example: v-list-dns-templates json
+#
 # The function for obtaining the list of all DNS templates available.
 # The function for obtaining the list of all DNS templates available.
 
 
 
 

+ 2 - 0
bin/v-list-firewall

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# example v-list-firewall json
+#
 # The function of obtaining the list of all iptables rules.
 # The function of obtaining the list of all iptables rules.
 
 
 
 

+ 2 - 0
bin/v-list-firewall-ban

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-firewall-ban json
+#
 # The function of obtaining the list of currently blocked ips.
 # The function of obtaining the list of currently blocked ips.
 
 
 
 

+ 2 - 0
bin/v-list-firewall-ipset

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-list-firewall-ipset json
+#
 # The function prints defined ipset lists
 # The function prints defined ipset lists
 
 
 
 

+ 2 - 0
bin/v-list-mail-domain-ssl

@@ -3,6 +3,8 @@
 # options: USER DOMAIN [FORMAT]
 # options: USER DOMAIN [FORMAT]
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-list-mail-domain-ssl user acme.com json
+#
 # The function of obtaining domain ssl files.
 # The function of obtaining domain ssl files.
 
 
 
 

+ 2 - 0
bin/v-list-remote-dns-hosts

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# example: v-list-remote-dns-hosts json
+#
 # The function for obtaining the list of remote dns host.
 # The function for obtaining the list of remote dns host.
 
 
 
 

+ 2 - 0
bin/v-list-sys-clamd-config

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# example: v-list-clamd-config
+#
 # The function for obtaining the list of clamd config parameters.
 # The function for obtaining the list of clamd config parameters.
 
 
 
 

+ 2 - 0
bin/v-list-sys-config

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# example: v-list-sys-config json
+#
 # The function for obtaining the list of system parameters.
 # The function for obtaining the list of system parameters.
 
 
 
 

+ 2 - 0
bin/v-list-sys-cpu-status

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# example: v-list-sys-cpu-status
+#
 # The function lists cpu information
 # The function lists cpu information
 
 
 
 

+ 2 - 0
bin/v-list-sys-db-status

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# v-list-sys-db-status
+#
 # The function lists db server status
 # The function lists db server status
 
 
 
 

+ 2 - 0
bin/v-list-sys-disk-status

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# example: v-list-sys-disk-status
+#
 # The function lists disk information
 # The function lists disk information
 
 
 
 

+ 2 - 0
bin/v-list-sys-dns-status

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# example: v-list-sys-dns-status
+#
 # The function lists dns server status
 # The function lists dns server status
 
 
 
 

+ 2 - 0
bin/v-list-sys-dovecot-config

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# example: v-list-sys-dovecot-config
+#
 # The function for obtaining the list of dovecot config parameters.
 # The function for obtaining the list of dovecot config parameters.
 
 
 
 

+ 3 - 1
bin/v-list-sys-hestia-autoupdate

@@ -3,7 +3,9 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
-# The function for obtaining autoupdate setings.
+# example: v-list-sys-hestia-autoupdate
+#
+# The function for obtaining autoupdate settings.
 
 
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#

+ 2 - 0
bin/v-list-sys-hestia-ssl

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# example: v-list-sys-hestia-ssl
+#
 # The function of obtaining hestia ssl files.
 # The function of obtaining hestia ssl files.
 
 
 
 

+ 2 - 0
bin/v-list-sys-hestia-updates

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# example: v-list-sys-hestia-updates
+#
 # The function checks available updates for hestia packages.
 # The function checks available updates for hestia packages.
 
 
 
 

+ 2 - 0
bin/v-list-sys-info

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# example: v-list-sys-info
+#
 # The function checks available updates for hestia packages.
 # The function checks available updates for hestia packages.
 
 
 
 

+ 2 - 0
bin/v-list-sys-interfaces

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# v-list-sys-interfaces
+#
 # The function for obtaining the list of network interfaces.
 # The function for obtaining the list of network interfaces.
 
 
 
 

+ 2 - 0
bin/v-list-sys-ips

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-sys-ips
+#
 # The function for obtaining the list of system ip adresses.
 # The function for obtaining the list of system ip adresses.
 
 
 
 

+ 5 - 3
bin/v-list-sys-languages

@@ -1,10 +1,12 @@
 #!/bin/bash
 #!/bin/bash
-# info: list system users
+# info: list system languages
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
-# The function for obtaining the list of system users without
-# detailed information.
+# example: v-list-sys-languages 
+#
+# The function for obtaining the available languages for HestiaCP
+# Output is always in the ISO language code
 
 
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#

+ 2 - 0
bin/v-list-sys-mail-status

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: mail
 # labels: mail
 #
 #
+# example: v-list-sys-main-status json
+#
 # The function lists mail server status
 # The function lists mail server status
 
 
 
 

+ 2 - 0
bin/v-list-sys-memory-status

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# v-list-sys-memory-status json
+#
 # The function lists virtual memory information
 # The function lists virtual memory information
 
 
 
 

+ 2 - 0
bin/v-list-sys-mysql-config

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-sys-mysql-config
+#
 # The function for obtaining the list of mysql config parameters.
 # The function for obtaining the list of mysql config parameters.
 
 
 
 

+ 2 - 0
bin/v-list-sys-network-status

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# example: v-list-sys-network-status json
+#
 # The function lists network status
 # The function lists network status
 
 
 
 

+ 2 - 0
bin/v-list-sys-nginx-config

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-sys-nginx-config 
+#
 # The function for obtaining the list of nginx config parameters.
 # The function for obtaining the list of nginx config parameters.
 
 
 
 

+ 2 - 0
bin/v-list-sys-pgsql-config

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-sys-pgsql-config
+#
 # The function for obtaining the list of postgresql config parameters.
 # The function for obtaining the list of postgresql config parameters.
 
 
 
 

+ 4 - 2
bin/v-list-sys-php

@@ -1,9 +1,11 @@
 #!/bin/bash
 #!/bin/bash
 # info: listing availble PHP versions installed
 # info: listing availble PHP versions installed
 # options: [FORMAT]
 # options: [FORMAT]
-# labels: hestia
+# labels: hestia panel
 #
 #
-# List /etc/php/* version check if folder fpm is avalible
+# example: v-list-sys-php
+#
+# List /etc/php/* version check if folder fpm is available
 
 
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#

+ 2 - 0
bin/v-list-sys-php-config

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-sys-php-config
+#
 # The function for obtaining the list of php config parameters.
 # The function for obtaining the list of php config parameters.
 
 
 
 

+ 2 - 0
bin/v-list-sys-proftpd-config

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-sys-proftpd-config
+#
 # The function for obtaining the list of proftpd config parameters.
 # The function for obtaining the list of proftpd config parameters.
 
 
 
 

+ 2 - 0
bin/v-list-sys-rrd

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-sys-rrd
+#
 # List available rrd graphics, its titles and paths.
 # List available rrd graphics, its titles and paths.
 
 
 
 

+ 3 - 1
bin/v-list-sys-services

@@ -1,7 +1,9 @@
 #!/bin/bash
 #!/bin/bash
 # info: list system services
 # info: list system services
 # options: [FORMAT]
 # options: [FORMAT]
-# labels: 
+# labels: panel
+#
+# example: v-list-sys-services
 #
 #
 # The function for obtaining the list of configured system services.
 # The function for obtaining the list of configured system services.
 
 

+ 3 - 1
bin/v-list-sys-shells

@@ -1,7 +1,9 @@
 #!/bin/bash
 #!/bin/bash
 # info: list system shells
 # info: list system shells
 # options: [FORMAT]
 # options: [FORMAT]
-# labels: 
+# labels: panel
+# 
+# example: v-list-sys-shells
 #
 #
 # The function for obtaining the list of system shells.
 # The function for obtaining the list of system shells.
 
 

+ 2 - 0
bin/v-list-sys-spamd-config

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-sys-spamd-config
+#
 # The function for obtaining the list of spamassassin config parameters.
 # The function for obtaining the list of spamassassin config parameters.
 
 
 
 

+ 3 - 1
bin/v-list-sys-themes

@@ -1,8 +1,10 @@
 #!/bin/bash
 #!/bin/bash
-# info: list web templates
+# info: list system themes
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-list-sys-themes
+#
 # The function for obtaining the list of themes in the theme
 # The function for obtaining the list of themes in the theme
 # library and displaying them in the backend or user interface.
 # library and displaying them in the backend or user interface.
 
 

+ 2 - 0
bin/v-list-sys-users

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-sys-users 
+#
 # The function for obtaining the list of system users without
 # The function for obtaining the list of system users without
 # detailed information.
 # detailed information.
 
 

+ 3 - 1
bin/v-list-sys-vsftpd-config

@@ -1,7 +1,9 @@
 #!/bin/bash
 #!/bin/bash
 # info: list vsftpd config parameters
 # info: list vsftpd config parameters
 # options: [FORMAT]
 # options: [FORMAT]
-# labels: 
+# labels: panel
+#
+# example: v-list-sys-vsftpd-config
 #
 #
 # The function for obtaining the list of vsftpd config parameters.
 # The function for obtaining the list of vsftpd config parameters.
 
 

+ 3 - 1
bin/v-list-sys-web-status

@@ -1,7 +1,9 @@
 #!/bin/bash
 #!/bin/bash
 # info: list web status
 # info: list web status
 # options: [FORMAT]
 # options: [FORMAT]
-# labels: 
+# labels: panel
+#
+# example: v-list-sys-web-status
 #
 #
 # The function lists web server status
 # The function lists web server status
 
 

+ 2 - 0
bin/v-list-user-log

@@ -3,6 +3,8 @@
 # options: USER [FORMAT]
 # options: USER [FORMAT]
 # labels: 
 # labels: 
 #
 #
+# example: v-list-user-log
+#
 # The function of obtaining the list of 100 last users commands.
 # The function of obtaining the list of 100 last users commands.
 
 
 
 

+ 2 - 0
bin/v-list-users

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-list-users
+#
 # The function to obtain the list of all system users.
 # The function to obtain the list of all system users.
 
 
 
 

+ 3 - 1
bin/v-list-web-stats

@@ -1,7 +1,9 @@
 #!/bin/bash
 #!/bin/bash
 # info: list web statistics
 # info: list web statistics
 # options: [FORMAT]
 # options: [FORMAT]
-# labels: web
+# labels: web panel
+#
+# example: v-list-web-stats 
 #
 #
 # The function for obtaining the list of web statistics analyzer.
 # The function for obtaining the list of web statistics analyzer.
 
 

+ 2 - 0
bin/v-list-web-templates

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: web
 # labels: web
 #
 #
+# example: v-list-web-templates
+#
 # The function for obtaining the list of web templates available to a user.
 # The function for obtaining the list of web templates available to a user.
 
 
 
 

+ 2 - 0
bin/v-list-web-templates-backend

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: web
 # labels: web
 #
 #
+# example: v-list-web-templates-backend
+#
 # The function for obtaining the list of available backend templates.
 # The function for obtaining the list of available backend templates.
 
 
 
 

+ 2 - 0
bin/v-list-web-templates-proxy

@@ -3,6 +3,8 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: web
 # labels: web
 #
 #
+# example: v-list-web-templates-proxy
+#
 # The function for obtaining the list of proxy templates available to a user.
 # The function for obtaining the list of proxy templates available to a user.
 
 
 
 

+ 2 - 0
bin/v-rebuild-database

@@ -3,6 +3,8 @@
 # options: USER DATABASE
 # options: USER DATABASE
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-rebuild user user_wordpress
+#
 # The function for rebuilding a single database for a user
 # The function for rebuilding a single database for a user
 
 
 
 

+ 2 - 0
bin/v-rebuild-mail-domain

@@ -3,6 +3,8 @@
 # options: USER DOMAIN
 # options: USER DOMAIN
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-rebuild-mail-domain user domain.tld
+#
 # The function rebuilds configuration files for a single domain.
 # The function rebuilds configuration files for a single domain.
 
 
 
 

+ 4 - 2
bin/v-rebuild-users

@@ -1,9 +1,11 @@
 #!/bin/bash
 #!/bin/bash
-# info: rebuild system user
+# info: rebuild system users
 # options: [RESTART]
 # options: [RESTART]
 # labels: hestia
 # labels: hestia
 #
 #
-# The function rebuilds system user accounts.
+# example: v-rebuild-users
+#
+# The function all users on the system.
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#
 #                    Variable&Function                     #
 #                    Variable&Function                     #

+ 2 - 0
bin/v-rebuild-web-domain

@@ -3,6 +3,8 @@
 # options: USER DOMAIN [RESTART]
 # options: USER DOMAIN [RESTART]
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-rebuild-web-domain user domain.tld 
+#
 # The function rebuilds web configuration files.
 # The function rebuilds web configuration files.
 
 
 
 

+ 2 - 0
bin/v-rebuild-web-domains

@@ -3,6 +3,8 @@
 # options: USER [RESTART]
 # options: USER [RESTART]
 # labels: 
 # labels: 
 #
 #
+# example: v-rebuild-web-domains
+#
 # The function rebuilds web configuration files.
 # The function rebuilds web configuration files.
 
 
 
 

+ 2 - 0
bin/v-refresh-sys-theme

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-refresh-sys-theme
+#
 # The function for changing the currently active system theme.
 # The function for changing the currently active system theme.
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#

+ 2 - 0
bin/v-rename-package

@@ -3,6 +3,8 @@
 # options: OLD_NAME NEW_NAME
 # options: OLD_NAME NEW_NAME
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-rename-package package package2
+#
 # The function changes the name of an existing package.
 # The function changes the name of an existing package.
 
 
 
 

+ 2 - 0
bin/v-restart-cron

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: panel
 # labels: panel
 #
 #
+# example: v-restart-cron
+#
 # The function tells crond service to reread its configuration files.
 # The function tells crond service to reread its configuration files.
 
 
 
 

+ 2 - 0
bin/v-restart-dns

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: dns
 # labels: dns
 #
 #
+# example: v-restart-dns
+#
 # The function tells BIND service to reload dns zone files.
 # The function tells BIND service to reload dns zone files.
 
 
 
 

+ 2 - 0
bin/v-restart-ftp

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: panel
 # labels: panel
 #
 #
+# example: v-restart-ftp
+#
 # The function tells ftp server to reread its configuration.
 # The function tells ftp server to reread its configuration.
 
 
 
 

+ 2 - 0
bin/v-restart-mail

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: mail
 # labels: mail
 #
 #
+# example: v-restart-mail
+#
 # The function tells exim or dovecot services to reload configuration files.
 # The function tells exim or dovecot services to reload configuration files.
 
 
 
 

+ 2 - 0
bin/v-restart-proxy

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: panel
 # labels: panel
 #
 #
+# example: v-restart-proxy
+#
 # The function reloads proxy server configuration.
 # The function reloads proxy server configuration.
 
 
 
 

+ 2 - 0
bin/v-restart-service

@@ -3,6 +3,8 @@
 # options: SERVICE [RESTART]
 # options: SERVICE [RESTART]
 # labels: panel
 # labels: panel
 #
 #
+# example: v-restart-service apache2
+#
 # The function restarts system service.
 # The function restarts system service.
 
 
 
 

+ 2 - 0
bin/v-restart-web

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: web
 # labels: web
 #
 #
+# example: v-restart-web
+#
 # The function reloads web server configuration.
 # The function reloads web server configuration.
 
 
 
 

+ 2 - 0
bin/v-restart-web-backend

@@ -3,6 +3,8 @@
 # options: NONE
 # options: NONE
 # labels: web
 # labels: web
 #
 #
+# example: v-restart-web-backend
+#
 # The function reloads backend server configuration.
 # The function reloads backend server configuration.
 
 
 
 

+ 2 - 0
bin/v-run-cli-cmd

@@ -3,6 +3,8 @@
 # options: USER CMD [ARG...]
 # options: USER CMD [ARG...]
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-run-cli-cmd user composer require package
+#
 # The function runs a limited list of cli commands with dropped privileges as the specific hestia user
 # The function runs a limited list of cli commands with dropped privileges as the specific hestia user
 
 
 user=$1
 user=$1

+ 2 - 0
bin/v-schedule-user-backup-download

@@ -3,6 +3,8 @@
 # options: USER BACKUP
 # options: USER BACKUP
 # labels: hestia
 # labels: hestia
 #
 #
+# example: v-schedule-user-backup-download admin 2019-04-22_01-00-00.tar
+
 # The function for scheduling user backup creation.
 # The function for scheduling user backup creation.
 
 
 
 

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini