Skip to content

Commit 46c165d

Browse files
committed
removed dublicate includes
1 parent 9513f98 commit 46c165d

12 files changed

+2
-21
lines changed

bin/v_add_sys_user

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ is_package_valid "$package"
4040
# Action #
4141
#----------------------------------------------------------#
4242

43-
# Importing main config
44-
source $V_CONF/vesta.conf
45-
4643
# Parsing package data
4744
package_data=$(cat $V_PKG/$package.pkg)
4845

bin/v_change_sys_config_value

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fi
3939
#----------------------------------------------------------#
4040

4141
# Updating conf
42-
sed -i "s/$key=.*/$key='$value'/g" /tmp/vesta.conf
42+
sed -i "s/$key=.*/$key='$value'/g" $V_CONF/vesta.conf
4343

4444

4545
#----------------------------------------------------------#

bin/v_del_sys_user

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ source $V_FUNC/shared.func
1515
source $V_FUNC/domain.func
1616
source $V_FUNC/db.func
1717
source $V_FUNC/ip.func
18-
source $V_CONF/vesta.conf
1918

2019

2120
#----------------------------------------------------------#

bin/v_restart_cron

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ crond() {
1515
}
1616

1717
# Parsing config / or just source config
18-
cron_system=$(grep 'CRON_SYSTEM=' $V_CONF/vesta.conf | cut -f 2 -d \' )
19-
20-
if [ "$cron_system" = 'crond' ]; then
18+
if [ "$CRON_SYSTEM" = 'crond' ]; then
2119
crond
2220
fi
2321

bin/v_restart_dns

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
# Importing variables
66
source /etc/profile.d/vesta.sh
77
source $VESTA/conf/vesta.conf
8-
source $VESTA/conf/vars.conf
9-
source $V_CONF/vesta.conf
108

119
bind() {
1210
/etc/init.d/named reload >/dev/null 2>&1

bin/v_upd_sys_ip

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ ip_list=$(/sbin/ifconfig |grep 'inet addr:'|cut -f 2 -d :|\
4949
# Get vesta registered ip list
5050
vesta_ip_list=$(ls $V_IPS/)
5151

52-
# Importing main config
53-
source $V_CONF/vesta.conf
54-
5552
# Defining config paths
5653
conf='/etc/httpd/conf.d/vesta.conf'
5754
nconf='/etc/nginx/conf.d/vesta_ip.conf'

bin/v_upd_sys_rrd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ source /etc/profile.d/vesta.sh
1313
# Importing variables
1414
source $VESTA/conf/vars.conf
1515
source $V_CONF/vesta.conf
16-
source $V_CONF/vesta.conf
1716
source $V_FUNC/shared.func
1817

1918
# Another workaround for cron enviroment

bin/v_upd_sys_rrd_ftp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ rrd_grid=${3-MINUTE:30:HOUR:1:HOUR:4:0:%H:%M}
1313
# Importing variables
1414
source $VESTA/conf/vars.conf
1515
source $V_CONF/vesta.conf
16-
source $V_CONF/vesta.conf
1716

1817

1918
#----------------------------------------------------------#

bin/v_upd_sys_rrd_httpd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ rrd_grid=${3-MINUTE:30:HOUR:1:HOUR:4:0:%H:%M}
1313
# Importing variables
1414
source $VESTA/conf/vars.conf
1515
source $V_CONF/vesta.conf
16-
source $V_CONF/vesta.conf
1716
source $V_FUNC/shared.func
1817
source $V_FUNC/domain.func
1918

bin/v_upd_sys_rrd_ssh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ rrd_grid=${3-MINUTE:30:HOUR:1:HOUR:4:0:%H:%M}
1313
# Importing variables
1414
source $VESTA/conf/vars.conf
1515
source $V_CONF/vesta.conf
16-
source $V_CONF/vesta.conf
1716

1817

1918
#----------------------------------------------------------#

0 commit comments

Comments
 (0)