Skip to content

Commit 50f7bcc

Browse files
committed
fixing environment for cron
1 parent ebf9994 commit 50f7bcc

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

bin/v_backup_users

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# Importing system enviroment as we run this script
1313
# mostly by cron wich not read it by itself
14-
source /etc/profile.d/vesta.sh
14+
source /etc/profile
1515

1616
# Includes
1717
source $VESTA/conf/vesta.conf

bin/v_update_sys_queue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ queue=$1
1717

1818
# Importing system enviroment as we run this script
1919
# mostly by cron wich not read it by itself
20-
source /etc/profile.d/vesta.sh
20+
source /etc/profile
2121

2222
# Includes
2323
source $VESTA/conf/vesta.conf

bin/v_update_sys_rrd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# Importing system enviroment as we run this script
1414
# mostly by cron wich do not read it by itself
15-
source /etc/profile.d/vesta.sh
15+
source /etc/profile
1616

1717
# Includes
1818
source $VESTA/conf/vesta.conf

bin/v_update_sys_vesta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ version=$1
1515
updates=''
1616

1717
# Importing system enviroment
18-
source /etc/profile.d/vesta.sh
18+
source /etc/profile
1919

2020
# Includes
2121
source $VESTA/conf/vesta.conf

bin/v_update_user_stats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ user=$1
1414

1515
# Importing system enviroment as we run this script
1616
# mostly by cron wich not read it by itself
17-
source /etc/profile.d/vesta.sh
17+
source /etc/profile
1818

1919
# Includes
2020
source $VESTA/conf/vesta.conf

func/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ validate_format(){
742742
stats_user) validate_format_username "$arg" "$arg_name" ;;
743743
template) validate_format_username "$arg" "$arg_name" ;;
744744
ttl) validate_format_int "$arg" ;;
745-
user) validate_format_username "$arg" ;;
745+
user) validate_format_username "$arg" "$arg_name" ;;
746746
wday) validate_format_mhdmw "$arg" $arg_name ;;
747747
esac
748748
done

0 commit comments

Comments
 (0)