From cfc46bb2a9555b76d805f514aabf883079a87f4d Mon Sep 17 00:00:00 2001 From: dpeca Date: Sat, 11 Apr 2020 02:16:24 +0200 Subject: [PATCH] Importing system enviroment in v-change-user-password Thanks to @ScIT-Raphael for discovering this bug --- bin/v-change-user-password | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/v-change-user-password b/bin/v-change-user-password index a1b6a76fb..30328641f 100755 --- a/bin/v-change-user-password +++ b/bin/v-change-user-password @@ -13,6 +13,10 @@ user=$1 password=$2; HIDE=2 +# Importing system enviroment as we run this script +# mostly by cron wich not read it by itself +source /etc/profile + # Includes source $VESTA/func/main.sh source $VESTA/conf/vesta.conf