Commit f73f3183 authored by Vitaly Lipatov's avatar Vitaly Lipatov

serv: initialize sudo just before command run

parent 30d8934f
...@@ -66,10 +66,6 @@ load_helper epm-sh-functions ...@@ -66,10 +66,6 @@ load_helper epm-sh-functions
INITDIR=/etc/init.d INITDIR=/etc/init.d
PATH=$PATH:/sbin:/usr/sbin
set_sudo
check_tty check_tty
############################# #############################
...@@ -294,6 +290,10 @@ if [ -z "$serv_cmd" ] ; then ...@@ -294,6 +290,10 @@ if [ -z "$serv_cmd" ] ; then
serv_cmd=common serv_cmd=common
fi fi
PATH=$PATH:/sbin:/usr/sbin
set_sudo
# Run helper for command # Run helper for command
load_helper serv-$serv_cmd load_helper serv-$serv_cmd
serv_$serv_cmd $service_name $params serv_$serv_cmd $service_name $params
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment