This is an automated email from the git hooks/post-receive script.
firstyear pushed a commit to branch master
in repository 389-ds-base.
commit eb2e1760d5b502b67bdd27af56addea61e6053ce
Author: Thierry bordaz (tbordaz) <tbordaz(a)redhat.com>
Date: Fri Dec 20 14:19:44 2013 +0100
Make the backup (instance) directory readable by anybody
Reviewed by: Nathan Kinder(thanks Nathan)
---
src/lib389/lib389/__init__.py | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/lib389/lib389/__init__.py b/src/lib389/lib389/__init__.py
index 40a0e75..60ac2f2 100644
--- a/src/lib389/lib389/__init__.py
+++ b/src/lib389/lib389/__init__.py
@@ -19,6 +19,7 @@ except ImportError:
import sys
import os
+import stat
import pwd
import os.path
import base64
@@ -921,11 +922,16 @@ class DirSrv(SimpleLDAPObject):
# First check it if already exists a backup file
backup_dir, backup_pattern = self._infoBackupFS()
backup_file = self.checkBackupFS()
- if backup_file is None:
- if not os.path.exists(backup_dir):
+ if not os.path.exists(backup_dir):
os.makedirs(backup_dir)
- else:
+ # make the backup directory accessible for anybody so that any user can run
+ # the tests even if it existed a backup created by somebody else
+ os.chmod(backup_dir, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
+
+ if backup_file :
return backup_file
+
+
# goes under the directory where the DS is deployed
listFilesToBackup = []
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.