Defining PATH for root commands

This commit is contained in:
skid 2016-08-09 17:36:36 +03:00
parent 08bdff8ba3
commit 98752897f0
8 changed files with 8 additions and 0 deletions

View file

@ -12,6 +12,7 @@
# Includes
source $VESTA/func/main.sh
source $VESTA/conf/vesta.conf
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
send_email_report() {
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)

View file

@ -12,6 +12,7 @@
# Includes
source $VESTA/func/main.sh
source $VESTA/conf/vesta.conf
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
send_email_report() {
if [ -e '/etc/named.conf' ]; then

View file

@ -12,6 +12,7 @@
# Includes
source $VESTA/func/main.sh
source $VESTA/conf/vesta.conf
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
send_email_report() {
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)

View file

@ -12,6 +12,7 @@
# Includes
source $VESTA/func/main.sh
source $VESTA/conf/vesta.conf
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
send_email_report() {
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)

View file

@ -12,6 +12,7 @@
# Includes
source $VESTA/func/main.sh
source $VESTA/conf/vesta.conf
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
send_email_report() {
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)

View file

@ -14,6 +14,7 @@ service=$1
# Includes
source $VESTA/func/main.sh
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Includes
source $VESTA/func/main.sh
source $VESTA/conf/vesta.conf
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
send_email_report() {
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)

View file

@ -12,6 +12,7 @@
# Includes
source $VESTA/func/main.sh
source $VESTA/conf/vesta.conf
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
send_email_report() {
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)