diff options
author | yellow <yellow@ofc-n1.10gen.com> | 2009-08-05 15:38:58 -0400 |
---|---|---|
committer | yellow <yellow@ofc-n1.10gen.com> | 2009-08-05 15:38:58 -0400 |
commit | 1fa83c18929249698bb66b949a4dad6bc41b9626 (patch) | |
tree | 56db21ea929a4f90960a11c86fbc056b58c2e815 | |
parent | 7d335e715c65d71611c5c4d7134ad8529eb3893a (diff) | |
download | mongo-1fa83c18929249698bb66b949a4dad6bc41b9626.tar.gz |
make sure binaries are 0755 SERVER-209
-rw-r--r-- | SConstruct | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 9af503af58f..b4a444dc9bd 100644 --- a/SConstruct +++ b/SConstruct @@ -512,6 +512,11 @@ if nix: if GetOption( "profile" ) is not None: env.Append( LINKFLAGS=" -pg " ) +try: + umask = os.umask(022) +except OSError: + pass + # --- check system --- def getGitVersion(): @@ -1185,6 +1190,9 @@ def installBinary( e , name ): if linux and len( COMMAND_LINE_TARGETS ) == 1 and str( COMMAND_LINE_TARGETS[0] ) == "s3dist": e.AddPostAction( inst , checkGlibc ) + if nix: + e.AddPostAction( inst , e.Action( 'chmod 755 ' + fullInstallName ) ) + installBinary( env , "mongodump" ) installBinary( env , "mongorestore" ) |