utils/migrate-system-profile | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
New commits:
commit f8872198d5e7bf2c681601f020bee30da4c8fb5f
Author: Pradeep Kilambi <pkilambi(a)redhat.com>
Date: Mon Aug 17 16:38:34 2009 -0400
migration of system profile should be able to run as non root now that it can run on
any client and not just satellite.
diff --git a/utils/migrate-system-profile b/utils/migrate-system-profile
index 76daa6f..258e8f2 100755
--- a/utils/migrate-system-profile
+++ b/utils/migrate-system-profile
@@ -46,12 +46,6 @@ _LIBPATH = "/usr/share/rhn"
if _LIBPATH not in sys.path:
sys.path.append(_LIBPATH)
-# quick check to see if you are a super-user.
-if os.getuid() != 0:
- sys.stderr.write('ERROR: must be root to execute\n')
- sys.exit(8)
-
-
try:
from utils import rhnLockfile
except KeyboardInterrupt:
@@ -66,7 +60,7 @@ except ImportError:
# i.e., lock against multiple instances of migrate servers
LOCK = None
try:
- LOCK = rhnLockfile.Lockfile('/var/run/migrate-server.pid')
+ LOCK = rhnLockfile.Lockfile('/tmp/migrate-server.pid')
except rhnLockfile.LockfileLockedException:
systemExit(1, "ERROR: attempting to run more than one instance of
migrate-server. Exiting.")
Show replies by date