Specify full path to sudo
This commit is contained in:
parent
f2be320c76
commit
7bcf0e2ea9
|
@ -136,7 +136,7 @@ class ElementManager(object):
|
|||
if not self.dry_run:
|
||||
# environment must be preseverd so that the variables set
|
||||
# earlier in os.environ are available in the scripts.
|
||||
rc = call(['sudo', '-E', '/bin/bash', script])
|
||||
rc = call(['/bin/sudo', '-E', '/bin/bash', script])
|
||||
if rc != 0:
|
||||
logging.error("scripted failed: %s" % script)
|
||||
if self.interactive:
|
||||
|
|
Loading…
Reference in New Issue