From 98752897f05f205b791fa9f3e3369b505c0c7aeb Mon Sep 17 00:00:00 2001 From: skid Date: Tue, 9 Aug 2016 17:36:36 +0300 Subject: [PATCH] Defining PATH for root commands --- bin/v-restart-cron | 1 + bin/v-restart-dns | 1 + bin/v-restart-ftp | 1 + bin/v-restart-mail | 1 + bin/v-restart-proxy | 1 + bin/v-restart-service | 1 + bin/v-restart-web | 1 + bin/v-restart-web-backend | 1 + 8 files changed, 8 insertions(+) diff --git a/bin/v-restart-cron b/bin/v-restart-cron index 8fcaf2bec..305f2db21 100755 --- a/bin/v-restart-cron +++ b/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) diff --git a/bin/v-restart-dns b/bin/v-restart-dns index 8e84d66ef..fad2f7049 100755 --- a/bin/v-restart-dns +++ b/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 diff --git a/bin/v-restart-ftp b/bin/v-restart-ftp index 9ab2d7714..f554011c4 100755 --- a/bin/v-restart-ftp +++ b/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) diff --git a/bin/v-restart-mail b/bin/v-restart-mail index 2784cd3d1..7080260ee 100755 --- a/bin/v-restart-mail +++ b/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) diff --git a/bin/v-restart-proxy b/bin/v-restart-proxy index 79776ce71..e050eb1cf 100755 --- a/bin/v-restart-proxy +++ b/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) diff --git a/bin/v-restart-service b/bin/v-restart-service index 5df3e2559..e46339f92 100755 --- a/bin/v-restart-service +++ b/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" #----------------------------------------------------------# diff --git a/bin/v-restart-web b/bin/v-restart-web index 4b62a8a0b..a7ecf6445 100755 --- a/bin/v-restart-web +++ b/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) diff --git a/bin/v-restart-web-backend b/bin/v-restart-web-backend index 54ba8daa5..50cd940ff 100755 --- a/bin/v-restart-web-backend +++ b/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)