Skip to content

Commit 41da503

Browse files
committed
Added documentations for SYS functions.
1 parent b5c11b8 commit 41da503

25 files changed

+139
-37
lines changed

bin/v_add_sys_ip

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
#!/bin/bash
22
# info: add system ip address
3-
# arguments: ip mask [interface] [user] [ip_status] [ip_name]
3+
# options: ip mask [interface] [user] [ip_status] [ip_name]
44
#
5-
# The function adds ip address into a system including rc scripts.
5+
# The function adds ip address into a system. It also creates rc scripts. You
6+
# can specify ip name which will be used as root domain for temporary aliases.
7+
# For example, if you set a1.myhosting.com as name, each new domain created on
8+
# this ip will automaticaly receive alias $domain.a1.myhosting.com. Of course
9+
# you must have wildcard record *.a1.myhosting.com pointed to ip. This feature
10+
# is very handy when customer wants to test domain before dns migration.
611

712

813
#----------------------------------------------------------#

bin/v_change_sys_config_value

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2-
# info: changing sysconfig value
2+
# info: change sysconfig value
3+
# options: key value
4+
#
5+
# The function is for changing main config settings such as COMPANY_NAME or
6+
# COMPANY_EMAIL and so on.
7+
38

49
#----------------------------------------------------------#
510
# Variable&Function #
@@ -29,8 +34,8 @@ format_validation 'key'
2934
check_ckey=$(grep "^$key='" $V_CONF/vesta.conf)
3035
if [ -z "$check_ckey" ]; then
3136
echo "Error: key not found"
32-
log_event 'debug' "$E_KEY_INVALID $V_EVENT"
33-
exit $E_KEY_INVALID
37+
log_event 'debug' "$E_INVALID $V_EVENT"
38+
exit $E_INVALID
3439
fi
3540

3641

bin/v_change_sys_ip_name

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
2-
# info: changing ip name
2+
# info: change ip name
3+
# options: ip name
4+
#
5+
# The function for changing dns domain associated with ip.
6+
37

48
#----------------------------------------------------------#
59
# Variable&Function #

bin/v_change_sys_ip_owner

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
2-
# info: changing ip owner
2+
# info: change ip owner
3+
# options: ip user
4+
#
5+
# The function of changing ip address ownership.
6+
37

48
#----------------------------------------------------------#
59
# Variable&Function #
@@ -9,7 +13,6 @@
913
ip=$1
1014
user=$2
1115

12-
1316
# Importing variables
1417
source $VESTA/conf/vars.conf
1518
source $V_CONF/vesta.conf

bin/v_change_sys_ip_status

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
2-
# info: changing ip status
2+
# info: change ip status
3+
# options: ip ip_status
4+
#
5+
# The function of changing an ip address's status.
6+
37

48
#----------------------------------------------------------#
59
# Variable&Function #

bin/v_delete_sys_ip

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2-
# info: deleting system ip
2+
# info: delete system ip
3+
# options: ip
4+
#
5+
# The function for deleting a system ip. It does not allow to delete first ip
6+
# on interface and do not allow to delete ip which is used by a web domain.
7+
38

49
#----------------------------------------------------------#
510
# Variable&Function #

bin/v_list_sys_config

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
2-
# info: listing system config
2+
# info: list system config
3+
# options: [format]
4+
#
5+
# The function for obtaining the list of system parameters.
6+
37

48
#----------------------------------------------------------#
59
# Variable&Function #

bin/v_list_sys_interfaces

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
2-
# info: listing system interfaces
2+
# info: list system interfaces
3+
# options: [format]
4+
#
5+
# The function for obtaining the list of network interfaces.
6+
37

48
#----------------------------------------------------------#
59
# Variable&Function #

bin/v_list_sys_ip

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
2-
# info: listing system ip
2+
# info: list system ip
3+
# options: ip [format]
4+
#
5+
# The function for getting the list of system ip parameters.
6+
37

48
#----------------------------------------------------------#
59
# Variable&Function #

bin/v_list_sys_ips

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
2-
# info: listing system ips
2+
# info: list system ips
3+
# options: [format]
4+
#
5+
# The function for obtaining the list of system ip's.
6+
37

48
#----------------------------------------------------------#
59
# Variable&Function #

0 commit comments

Comments
 (0)