diff --git a/bin/v_backup_users b/bin/v_backup_users index bd4ff711..b06469d1 100755 --- a/bin/v_backup_users +++ b/bin/v_backup_users @@ -11,7 +11,7 @@ # Importing system enviroment as we run this script # mostly by cron wich not read it by itself -source /etc/profile.d/vesta.sh +source /etc/profile # Includes source $VESTA/conf/vesta.conf diff --git a/bin/v_update_sys_queue b/bin/v_update_sys_queue index 3b4cd3c6..de9150f7 100755 --- a/bin/v_update_sys_queue +++ b/bin/v_update_sys_queue @@ -17,7 +17,7 @@ queue=$1 # Importing system enviroment as we run this script # mostly by cron wich not read it by itself -source /etc/profile.d/vesta.sh +source /etc/profile # Includes source $VESTA/conf/vesta.conf diff --git a/bin/v_update_sys_rrd b/bin/v_update_sys_rrd index 7c8c85a6..d297aad9 100755 --- a/bin/v_update_sys_rrd +++ b/bin/v_update_sys_rrd @@ -12,7 +12,7 @@ # Importing system enviroment as we run this script # mostly by cron wich do not read it by itself -source /etc/profile.d/vesta.sh +source /etc/profile # Includes source $VESTA/conf/vesta.conf diff --git a/bin/v_update_sys_vesta b/bin/v_update_sys_vesta index 336a1a12..6e31b0ed 100755 --- a/bin/v_update_sys_vesta +++ b/bin/v_update_sys_vesta @@ -15,7 +15,7 @@ version=$1 updates='' # Importing system enviroment -source /etc/profile.d/vesta.sh +source /etc/profile # Includes source $VESTA/conf/vesta.conf diff --git a/bin/v_update_user_stats b/bin/v_update_user_stats index ebb86eae..52ba7358 100755 --- a/bin/v_update_user_stats +++ b/bin/v_update_user_stats @@ -14,7 +14,7 @@ user=$1 # Importing system enviroment as we run this script # mostly by cron wich not read it by itself -source /etc/profile.d/vesta.sh +source /etc/profile # Includes source $VESTA/conf/vesta.conf diff --git a/func/main.sh b/func/main.sh index 6cdc25bc..c9937490 100644 --- a/func/main.sh +++ b/func/main.sh @@ -742,7 +742,7 @@ validate_format(){ stats_user) validate_format_username "$arg" "$arg_name" ;; template) validate_format_username "$arg" "$arg_name" ;; ttl) validate_format_int "$arg" ;; - user) validate_format_username "$arg" ;; + user) validate_format_username "$arg" "$arg_name" ;; wday) validate_format_mhdmw "$arg" $arg_name ;; esac done