You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by co...@apache.org on 2017/02/06 09:50:10 UTC

ranger git commit: RANGER-1349:Code block was iterated four times, in fact it should only be executed once during initializing InitD for ranger usersync process

Repository: ranger
Updated Branches:
  refs/heads/master 49af166e2 -> 6c9a84244


RANGER-1349:Code block was iterated four times, in fact it should only be executed once during initializing InitD for ranger usersync process

Signed-off-by: Colm O hEigeartaigh <co...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/6c9a8424
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/6c9a8424
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/6c9a8424

Branch: refs/heads/master
Commit: 6c9a84244ffbca2645d2ad190862d8287a01233b
Parents: 49af166
Author: zhangqiang2 <zh...@zte.com.cn>
Authored: Sat Feb 4 03:37:28 2017 -0500
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Mon Feb 6 09:50:03 2017 +0000

----------------------------------------------------------------------
 unixauthservice/scripts/setup.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/6c9a8424/unixauthservice/scripts/setup.py
----------------------------------------------------------------------
diff --git a/unixauthservice/scripts/setup.py b/unixauthservice/scripts/setup.py
index e20d12e..dc383af 100755
--- a/unixauthservice/scripts/setup.py
+++ b/unixauthservice/scripts/setup.py
@@ -312,12 +312,12 @@ def initializeInitD(ownerName):
 					if isfile(scriptName) or os.path.islink(scriptName):
 						os.remove(scriptName)
 					os.symlink(initdFn,scriptName)
-			userSyncScriptName = "ranger-usersync-services.sh"
-			localScriptName = os.path.abspath(join(installPropDirName,userSyncScriptName))
-			ubinScriptName = join("/usr/bin",initdProgramName)
-			if isfile(ubinScriptName) or os.path.islink(ubinScriptName):
-				os.remove(ubinScriptName)
-			os.symlink(localScriptName,ubinScriptName)
+		userSyncScriptName = "ranger-usersync-services.sh"
+		localScriptName = os.path.abspath(join(installPropDirName,userSyncScriptName))
+		ubinScriptName = join("/usr/bin",initdProgramName)
+		if isfile(ubinScriptName) or os.path.islink(ubinScriptName):
+			os.remove(ubinScriptName)
+		os.symlink(localScriptName,ubinScriptName)
 
 
 def createJavaKeystoreForSSL(fn,passwd):