Skip to content

Commit 1012f6a

Browse files
author
bisubus
committed
Update script options to match actually used
1 parent e9354b3 commit 1012f6a

37 files changed

+49
-48
lines changed

bin/v-add-database-host

Lines changed: 1 addition & 1 deletion
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 DBUSER DBPASS [MAX_DB] [CHARSETS] [TEMPLATE]
3+
# options: TYPE HOST DBUSER DBPASS [MAX_DB] [CHARSETS] [TEMPLATE] [PORT]
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

bin/v-add-fs-archive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: archive directory
3-
# options: USER ARCHIVE SOURCE
3+
# options: USER ARCHIVE SOURCE [SOURCE...]
44
#
55
# The function creates tar archive
66

bin/v-add-sys-filemanager

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: add file manager functionality to Hestia Control Panel
3-
# options: NONE
3+
# options: [MODE]
44
#
55
# The function installs the File Manager on the server
66
# for access through the Web interface.

bin/v-change-dns-domain-ip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: change dns domain ip address
3-
# options: USER DOMAIN IP
3+
# options: USER DOMAIN IP [RESTART]
44
#
55
# The function for changing the main ip of DNS zone.
66

@@ -31,7 +31,7 @@ format_domain_idn
3131
# Verifications #
3232
#----------------------------------------------------------#
3333

34-
check_args '3' "$#" 'USER DOMAIN IP'
34+
check_args '3' "$#" 'USER DOMAIN IP [RESTART]'
3535
is_format_valid 'user' 'domain' 'ip'
3636
is_system_enabled "$DNS_SYSTEM" 'DNS_SYSTEM'
3737
is_object_valid 'user' 'USER' "$user"

bin/v-change-dns-domain-soa

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: change dns domain soa record
3-
# options: USER DOMAIN SOA
3+
# options: USER DOMAIN SOA [RESTART]
44
#
55
# The function for changing SOA record. This type of records can not be
66
# modified by v-change-dns-record call.
@@ -32,7 +32,7 @@ format_domain_idn
3232
# Verifications #
3333
#----------------------------------------------------------#
3434

35-
check_args '3' "$#" 'USER DOMAIN SOA'
35+
check_args '3' "$#" 'USER DOMAIN SOA [RESTART]'
3636
is_format_valid 'user' 'domain' 'soa'
3737
is_system_enabled "$DNS_SYSTEM" 'DNS_SYSTEM'
3838
is_object_valid 'user' 'USER' "$user"

bin/v-change-dns-domain-ttl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: change dns domain ttl
3-
# options: USER DOMAIN TTL
3+
# options: USER DOMAIN TTL [RESTART]
44
#
55
# The function for changing the time to live TTL parameter for all records.
66

@@ -31,7 +31,7 @@ format_domain_idn
3131
# Verifications #
3232
#----------------------------------------------------------#
3333

34-
check_args '3' "$#" 'USER DOMAIN TTL'
34+
check_args '3' "$#" 'USER DOMAIN TTL [RESTART]'
3535
is_format_valid 'user' 'domain' 'ttl'
3636
is_system_enabled "$DNS_SYSTEM" 'DNS_SYSTEM'
3737
is_object_valid 'user' 'USER' "$user"

bin/v-change-dns-record

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: change dns domain record
3-
# options: USER DOMAIN ID VALUE [PRIORITY] [RESTART] [TTL]
3+
# options: USER DOMAIN ID RECORD TYPE VALUE [PRIORITY] [RESTART] [TTL]
44
#
55
# The function for changing DNS record.
66

bin/v-change-sys-language

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: change sys language
3-
# options: LANGUAGE
3+
# options: LANGUAGE [UPDATE_USERS]
44
#
55
# The function for changing system language.
66

@@ -31,7 +31,7 @@ is_language_valid() {
3131
# Verifications #
3232
#----------------------------------------------------------#
3333

34-
check_args '1' "$#" 'LANGUAGE'
34+
check_args '1' "$#" 'LANGUAGE [UPDATE_USERS]'
3535
is_format_valid 'language'
3636
is_language_valid $language
3737

bin/v-change-sys-theme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: update web templates
3-
# options: NONE
3+
# options: THEME
44
#
55
# The function for changing the currently active system theme.
66

bin/v-change-user-name

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: change user full name
3-
# options: USER NAME
3+
# options: USER NAME [LAST_NAME]
44
#
55
# The function allow to change user's full name.
66

@@ -23,7 +23,7 @@ source $HESTIA/conf/hestia.conf
2323
# Verifications #
2424
#----------------------------------------------------------#
2525

26-
check_args '2' "$#" 'USER NAME'
26+
check_args '2' "$#" 'USER NAME [LAST_NAME]'
2727
is_format_valid 'user' 'name'
2828
is_object_valid 'user' 'USER' "$user"
2929
is_object_unsuspended 'user' 'USER' "$user"

0 commit comments

Comments
 (0)