Skip to content

Commit 2b520fa

Browse files
committed
issue hestiacp#57 upper case arguments to improve readability
1 parent 4482948 commit 2b520fa

File tree

217 files changed

+449
-449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+449
-449
lines changed

bin/v-add-cron-job

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: add cron job
3-
# options: user min hour day month wday command [job]
3+
# options: USER MIN HOUR DAY MONTH WDAY COMMAND [JOB]
44
#
55
# The function adds a job to cron daemon. When executing commands, any output
66
# is mailed to user's email if parameter REPORTS is set to 'yes'.
@@ -32,7 +32,7 @@ A7="$command"
3232
# Verifications #
3333
#----------------------------------------------------------#
3434

35-
check_args '7' "$#" 'user min hour day month wday command [job]'
35+
check_args '7' "$#" 'USER MIN HOUR DAY MONTH WDAY COMMAND [JOB]'
3636
validate_format 'user' 'min' 'hour' 'day' 'month' 'wday' 'command'
3737
is_system_enabled $CRON_SYSTEM
3838
is_object_valid 'user' 'USER' "$user"

bin/v-add-cron-report

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ source $VESTA/func/main.sh
2222
# Verifications #
2323
#----------------------------------------------------------#
2424

25-
check_args '1' "$#" 'user'
25+
check_args '1' "$#" 'USER'
2626
validate_format 'user'
2727
is_system_enabled "$CRON_SYSTEM"
2828
is_object_valid 'user' 'USER' "$user"

bin/v-add-database

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: add database
3-
# options: user database dbuser dbpass type [host] [charset]
3+
# options: USER DATABASE DBUSER DBPASS TYPE [HOST] [CHARSET]
44
#
55
# The function creates the database concatenating username and user_db.
66
# Supported yypes of databases you can get using v-list-sys-config script.
@@ -40,7 +40,7 @@ EVENT="$EVENT A4='$A4' A5='$A5' A6='$A6' A7='$A7' A8='$A8' A9='$A9'"
4040
# Verifications #
4141
#----------------------------------------------------------#
4242

43-
check_args '5' "$#" 'user database dbuser dbpass type [host] [charset]'
43+
check_args '5' "$#" 'USER DATABASE DBUSER DBPASS TYPE [HOST] [CHARSET]'
4444
validate_format 'user' 'database' 'dbuser' 'dbpass' 'charset'
4545
is_system_enabled "$DB_SYSTEM"
4646
is_type_valid "$DB_SYSTEM" "$type"

bin/v-add-database-server

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: add new database server
3-
# options: type host port dbuser dbpass [max_db] [charsets] [template]
3+
# options: TYPE HOST PORT DBUSER DBPASS [MAX_DB] [CHARSETS] [TEMPLATE]
44
#
55
# The function add new database server to the server pool. It supports local
66
# and remote database servers, which is useful for clusters. By adding a host
@@ -36,7 +36,7 @@ max_db=${6-500}
3636
# Verifications #
3737
#----------------------------------------------------------#
3838

39-
args_usage='type host port dbuser dbpass [max_db] [charsets] [tpl]'
39+
args_usage='TYPE HOST PORT DBUSER DBPASS [MAX_DB] [CHARSETS] [TPL]'
4040
check_args '5' "$#" "$args_usage"
4141
validate_format 'host' 'port' 'dbuser' 'dbpass' 'max_db' 'charsets' 'template'
4242
is_system_enabled "$DB_SYSTEM"

bin/v-add-dns-domain

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: add dns domain
3-
# options: user domain ip [template] [ns1] [ns2] [ns3] [ns4] [restart]
3+
# options: USER DOMAIN IP [TEMPLATE] [NS1] [NS2] [NS3] [NS4] [RESTART]
44
#
55
# The function adds DNS zone with records defined in the template. If the exp
66
# argument isn't stated, the expiration date value will be set to next year.
@@ -37,7 +37,7 @@ source $VESTA/func/domain.sh
3737
# Verifications #
3838
#----------------------------------------------------------#
3939

40-
check_args '3' "$#" 'user domain ip [template] [ns1] [ns2] [ns3] [ns4]'
40+
check_args '3' "$#" 'USER DOMAIN IP [TEMPLATE] [NS1] [NS2] [NS3] [NS4]'
4141
validate_format 'user' 'domain' 'ip'
4242
is_system_enabled "$DNS_SYSTEM"
4343
is_object_valid 'user' 'USER' "$user"

bin/v-add-dns-domain-record

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: add dns domain record
3-
# options: user domain record type value [priority] [id] [restart]
3+
# options: USER DOMAIN RECORD TYPE VALUE [PRIORITY] [ID] [RESTART]
44
#
55
# The call is used for adding new DNS record. Complex records of TXT, MX and
66
# SRV types can be used by a filling in the 'value' argument. The function also
@@ -36,7 +36,7 @@ source $VESTA/func/domain.sh
3636
# Verifications #
3737
#----------------------------------------------------------#
3838

39-
check_args '5' "$#" 'user domain record type value [priority] [id] [restart]'
39+
check_args '5' "$#" 'USER DOMAIN RECORD TYPE VALUE [PRIORITY] [ID] [RESTART]'
4040
validate_format 'user' 'domain' 'record' 'rtype' 'dvalue'
4141
is_system_enabled "$DNS_SYSTEM"
4242
is_object_valid 'user' 'USER' "$user"

bin/v-add-dns-on-web-alias

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: add dns domain or dns record based on web domain alias restart
3-
# options: user domain
3+
# options: USER DOMAIN
44
#
55
# The function adds dns domain or dns record based on web domain alias.
66

@@ -29,7 +29,7 @@ source $VESTA/func/domain.sh
2929
# Verifications #
3030
#----------------------------------------------------------#
3131

32-
check_args '3' "$#" 'user domain alias'
32+
check_args '3' "$#" 'USER DOMAIN ALIAS'
3333
validate_format 'user' 'domain'
3434
is_system_enabled "$WEB_SYSTEM"
3535
is_system_enabled "$DNS_SYSTEM"

bin/v-add-mail-account

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: add mail domain account
3-
# options: user domain account password [quota]
3+
# options: USER DOMAIN ACCOUNT PASSWORD [QUOTA]
44
#
55
# The function add new email account.
66

@@ -33,7 +33,7 @@ EVENT="$EVENT A4='$A4' A5='$A5' A6='$A6' A7='$A7' A8='$A8' A9='$A9'"
3333
# Verifications #
3434
#----------------------------------------------------------#
3535

36-
check_args '4' "$#" 'user domain account password [quota]'
36+
check_args '4' "$#" 'USER DOMAIN ACCOUNT PASSWORD [QUOTA]'
3737
validate_format 'user' 'domain' 'account' 'password' 'quota'
3838
is_system_enabled "$MAIL_SYSTEM"
3939
is_object_valid 'user' 'USER' "$user"

bin/v-add-mail-account-alias

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: add mail account alias aka nickname
3-
# options: user domain account alias
3+
# options: USER DOMAIN ACCOUNT ALIAS
44
#
55
# The function add new email alias.
66

@@ -27,7 +27,7 @@ source $VESTA/func/domain.sh
2727
# Verifications #
2828
#----------------------------------------------------------#
2929

30-
check_args '4' "$#" 'user domain account alias'
30+
check_args '4' "$#" 'USER DOMAIN ACCOUNT ALIAS'
3131
validate_format 'user' 'domain' 'account' 'malias'
3232
is_system_enabled "$MAIL_SYSTEM"
3333
is_object_valid 'user' 'USER' "$user"

bin/v-add-mail-account-autoreply

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: add mail account autoreply message
3-
# options: user domain account message
3+
# options: USER DOMAIN ACCOUNT MESSAGE
44
#
55
# The function add new email account.
66

@@ -27,7 +27,7 @@ source $VESTA/func/domain.sh
2727
# Verifications #
2828
#----------------------------------------------------------#
2929

30-
check_args '4' "$#" 'user domain account message'
30+
check_args '4' "$#" 'USER DOMAIN ACCOUNT MESSAGE'
3131
validate_format 'user' 'domain' 'account' 'autoreply'
3232
is_system_enabled "$MAIL_SYSTEM"
3333
is_object_valid 'user' 'USER' "$user"

0 commit comments

Comments
 (0)