Просмотр исходного кода

Issues raised during generate cli

Jaap Marcus 5 лет назад
Родитель
Сommit
d582d20042

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

@@ -7,7 +7,6 @@
 #
 #
 # 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
 # For more info see https://docs.hestiacp.com/customize_hestia.html
 
 
 
 

+ 1 - 1
bin/v-check-api-key

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

+ 1 - 1
bin/v-delete-sys-sftp-jail

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

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

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

+ 1 - 1
bin/v-delete-user-ssh-key

@@ -3,7 +3,7 @@
 # options: USER KEY
 # options: USER KEY
 # labels: hestia
 # labels: hestia
 #
 #
-# example: v-delelete-user-ssh-key user unique_id
+# example: v-delete-user-ssh-key user unique_id
 #
 #
 # Delete user ssh key from authorized_keys
 # Delete user ssh key from authorized_keys
 
 

+ 1 - 1
bin/v-download-backup

@@ -3,7 +3,7 @@
 # options: USER BACKUP
 # options: USER BACKUP
 # labels: hestia
 # labels: hestia
 #
 #
-# v-download-user admin admin.2020-11-05_05-10-21.tar
+# example: 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
 
 

+ 1 - 1
bin/v-get-sys-timezones

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

+ 1 - 1
bin/v-list-firewall

@@ -3,7 +3,7 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: 
 # labels: 
 #
 #
-# example v-list-firewall json
+# 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.
 
 

+ 1 - 1
bin/v-list-sys-clamd-config

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

+ 1 - 1
bin/v-list-sys-interfaces

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

+ 1 - 1
bin/v-list-sys-languages

@@ -3,7 +3,7 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
-# example: v-list-sys-languages 
+# example: v-list-sys-languages json
 #
 #
 # The function for obtaining the available languages for HestiaCP
 # The function for obtaining the available languages for HestiaCP
 # Output is always in the ISO language code
 # Output is always in the ISO language code

+ 1 - 1
bin/v-list-sys-mail-status

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

+ 1 - 1
bin/v-list-sys-memory-status

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

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

@@ -3,7 +3,7 @@
 # options: [FORMAT]
 # options: [FORMAT]
 # labels: panel
 # labels: panel
 #
 #
-# example: v-list-sys-services
+# example: v-list-sys-services json
 #
 #
 # The function for obtaining the list of configured system services.
 # The function for obtaining the list of configured system services.
 
 

+ 1 - 1
bin/v-rebuild-database

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

+ 1 - 1
bin/v-schedule-user-backup-download

@@ -4,7 +4,7 @@
 # labels: hestia
 # labels: hestia
 #
 #
 # example: v-schedule-user-backup-download admin 2019-04-22_01-00-00.tar
 # 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.
 
 
 
 

+ 0 - 1
bin/v-search-command

@@ -7,7 +7,6 @@
 #
 #
 # This function searches for available Hestia Control Panel commands
 # This function searches for available Hestia Control Panel commands
 # and returns results based on the specified criteria.
 # and returns results based on the specified criteria.
-
 # Originally developed for VestaCP by Federico Krum
 # Originally developed for VestaCP by Federico Krum
 # https://github.com/FastDigitalOceanDroplets/VestaCP/blob/master/files/v-search-command
 # https://github.com/FastDigitalOceanDroplets/VestaCP/blob/master/files/v-search-command
 
 

+ 1 - 1
bin/v-update-sys-rrd-mysql

@@ -3,7 +3,7 @@
 # options: PERIOD
 # options: PERIOD
 # labels: panel
 # labels: panel
 #
 #
-# v-update-sys-rrd-mysql
+# example: v-update-sys-rrd-mysql
 #
 #
 # The function is for updating mysql rrd database and graphic.
 # The function is for updating mysql rrd database and graphic.
 
 

+ 1 - 1
bin/v-update-user-stats

@@ -3,7 +3,7 @@
 # options: USER
 # options: USER
 # labels: panel
 # labels: panel
 #
 #
-# v-update-user-stats admin
+# example: v-update-user-stats admin
 #
 #
 # Function logs user parameters into statistics database.
 # Function logs user parameters into statistics database.
 
 

+ 1 - 1
bin/v-update-web-templates

@@ -3,7 +3,7 @@
 # options: [RESTART] [SKIP]
 # options: [RESTART] [SKIP]
 # labels: web
 # labels: web
 #
 #
-# example: v-update-web-template
+# example: v-update-web-templates
 #
 #
 # The function for obtaining updated web (Nginx/Apache2/PHP) templates from Hestia package.
 # The function for obtaining updated web (Nginx/Apache2/PHP) templates from Hestia package.