Importing system enviroment in v-change-user-password

Thanks to @ScIT-Raphael for discovering this bug
This commit is contained in:
dpeca 2020-04-11 02:16:24 +02:00 committed by GitHub
parent cc8a3e0c58
commit cfc46bb2a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,10 @@
user=$1 user=$1
password=$2; HIDE=2 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 # Includes
source $VESTA/func/main.sh source $VESTA/func/main.sh
source $VESTA/conf/vesta.conf source $VESTA/conf/vesta.conf