Explorar o código

Importing system enviroment in v-change-user-password

Thanks to @ScIT-Raphael for discovering this bug
dpeca %!s(int64=5) %!d(string=hai) anos
pai
achega
cfc46bb2a9
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      bin/v-change-user-password

+ 4 - 0
bin/v-change-user-password

@@ -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