Skip to content

Commit 9875289

Browse files
author
skid
committed
Defining PATH for root commands
1 parent 08bdff8 commit 9875289

File tree

8 files changed

+8
-0
lines changed

8 files changed

+8
-0
lines changed

bin/v-restart-cron

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# Includes
1313
source $VESTA/func/main.sh
1414
source $VESTA/conf/vesta.conf
15+
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
1516

1617
send_email_report() {
1718
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)

bin/v-restart-dns

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# Includes
1313
source $VESTA/func/main.sh
1414
source $VESTA/conf/vesta.conf
15+
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
1516

1617
send_email_report() {
1718
if [ -e '/etc/named.conf' ]; then

bin/v-restart-ftp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# Includes
1313
source $VESTA/func/main.sh
1414
source $VESTA/conf/vesta.conf
15+
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
1516

1617
send_email_report() {
1718
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)

bin/v-restart-mail

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# Includes
1313
source $VESTA/func/main.sh
1414
source $VESTA/conf/vesta.conf
15+
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
1516

1617
send_email_report() {
1718
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)

bin/v-restart-proxy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# Includes
1313
source $VESTA/func/main.sh
1414
source $VESTA/conf/vesta.conf
15+
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
1516

1617
send_email_report() {
1718
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)

bin/v-restart-service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ service=$1
1414

1515
# Includes
1616
source $VESTA/func/main.sh
17+
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
1718

1819

1920
#----------------------------------------------------------#

bin/v-restart-web

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# Includes
1313
source $VESTA/func/main.sh
1414
source $VESTA/conf/vesta.conf
15+
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
1516

1617
send_email_report() {
1718
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)

bin/v-restart-web-backend

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# Includes
1313
source $VESTA/func/main.sh
1414
source $VESTA/conf/vesta.conf
15+
PATH="$PATH:/usr/local/sbin:/sbin:/usr/sbin:/root/bin"
1516

1617
send_email_report() {
1718
email=$(grep CONTACT $VESTA/data/users/admin/user.conf)

0 commit comments

Comments
 (0)