Просмотр исходного кода

Defining PATH for root commands

skid 9 лет назад
Родитель
Сommit
98752897f0

+ 1 - 0
bin/v-restart-cron

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

+ 1 - 0
bin/v-restart-dns

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

+ 1 - 0
bin/v-restart-ftp

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

+ 1 - 0
bin/v-restart-mail

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

+ 1 - 0
bin/v-restart-proxy

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

+ 1 - 0
bin/v-restart-service

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

+ 1 - 0
bin/v-restart-web

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

+ 1 - 0
bin/v-restart-web-backend

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