restrict read perms to user on backup files
authorsylvain.thenault@logilab.fr
Mon, 06 Apr 2009 08:58:44 +0200
changeset 1240 6a9f621e07cc
parent 1239 7eda09aa7553
child 1241 00a8e6a1447e
restrict read perms to user on backup files
server/migractions.py
--- a/server/migractions.py	Sat Apr 04 15:48:08 2009 +0200
+++ b/server/migractions.py	Mon Apr 06 08:58:44 2009 +0200
@@ -106,7 +106,9 @@
                 if answer == 1: # 1: continue, 2: retry
                     break
             else:
+                from cubicweb.toolsutils import restrict_perms_to_user
                 print 'database backup:', backupfile
+                restrict_perms_to_user(backupfile, self.info)
                 break
         
     def restore_database(self, backupfile, drop=True):