Added full path to rhnreg_ks command for working correctly with sudo.

This commit is contained in:
Jurrien Bloemen 2013-10-14 16:05:01 +02:00
parent 5397f90f0c
commit d56db0c85a

View file

@ -262,7 +262,7 @@ class Rhn(RegistrationBase):
Register system to RHN. If enable_eus=True, extended update Register system to RHN. If enable_eus=True, extended update
support will be requested. support will be requested.
''' '''
register_cmd = "rhnreg_ks --username '%s' --password '%s' --force" % (self.username, self.password) register_cmd = "/usr/sbin/rhnreg_ks --username '%s' --password '%s' --force" % (self.username, self.password)
if enable_eus: if enable_eus:
register_cmd += " --use-eus-channel" register_cmd += " --use-eus-channel"
if activationkey is not None: if activationkey is not None: