mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
Defining PATH for root commands
This commit is contained in:
parent
08bdff8ba3
commit
98752897f0
8 changed files with 8 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
||||||
# Includes
|
# Includes
|
||||||
source $VESTA/func/main.sh
|
source $VESTA/func/main.sh
|
||||||
source $VESTA/conf/vesta.conf
|
source $VESTA/conf/vesta.conf
|
||||||
|
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
|
||||||
|
|
||||||
send_email_report() {
|
send_email_report() {
|
||||||
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
|
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
# Includes
|
# Includes
|
||||||
source $VESTA/func/main.sh
|
source $VESTA/func/main.sh
|
||||||
source $VESTA/conf/vesta.conf
|
source $VESTA/conf/vesta.conf
|
||||||
|
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
|
||||||
|
|
||||||
send_email_report() {
|
send_email_report() {
|
||||||
if [ -e '/etc/named.conf' ]; then
|
if [ -e '/etc/named.conf' ]; then
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
# Includes
|
# Includes
|
||||||
source $VESTA/func/main.sh
|
source $VESTA/func/main.sh
|
||||||
source $VESTA/conf/vesta.conf
|
source $VESTA/conf/vesta.conf
|
||||||
|
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
|
||||||
|
|
||||||
send_email_report() {
|
send_email_report() {
|
||||||
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
|
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
# Includes
|
# Includes
|
||||||
source $VESTA/func/main.sh
|
source $VESTA/func/main.sh
|
||||||
source $VESTA/conf/vesta.conf
|
source $VESTA/conf/vesta.conf
|
||||||
|
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
|
||||||
|
|
||||||
send_email_report() {
|
send_email_report() {
|
||||||
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
|
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
# Includes
|
# Includes
|
||||||
source $VESTA/func/main.sh
|
source $VESTA/func/main.sh
|
||||||
source $VESTA/conf/vesta.conf
|
source $VESTA/conf/vesta.conf
|
||||||
|
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
|
||||||
|
|
||||||
send_email_report() {
|
send_email_report() {
|
||||||
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
|
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
|
||||||
|
|
|
@ -14,6 +14,7 @@ service=$1
|
||||||
|
|
||||||
# Includes
|
# Includes
|
||||||
source $VESTA/func/main.sh
|
source $VESTA/func/main.sh
|
||||||
|
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
# Includes
|
# Includes
|
||||||
source $VESTA/func/main.sh
|
source $VESTA/func/main.sh
|
||||||
source $VESTA/conf/vesta.conf
|
source $VESTA/conf/vesta.conf
|
||||||
|
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
|
||||||
|
|
||||||
send_email_report() {
|
send_email_report() {
|
||||||
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
|
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
# Includes
|
# Includes
|
||||||
source $VESTA/func/main.sh
|
source $VESTA/func/main.sh
|
||||||
source $VESTA/conf/vesta.conf
|
source $VESTA/conf/vesta.conf
|
||||||
|
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
|
||||||
|
|
||||||
send_email_report() {
|
send_email_report() {
|
||||||
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
|
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue