From 68c90bc1a3718180cb487bddc6938c410c5c1ce6 Mon Sep 17 00:00:00 2001 From: bernat Date: Fri, 31 Dec 2004 23:27:07 +0100 Subject: [PATCH] Unification au niveau des droits darcs-hash:20041231222707-d1718-dbb154d6a2917da989a8a08a2d2f397f6810cf5b.gz --- dump-wiki.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dump-wiki.py b/dump-wiki.py index d3a60d0e..4dbdd0b3 100755 --- a/dump-wiki.py +++ b/dump-wiki.py @@ -57,7 +57,7 @@ class MoinDump(_util.Script): "--regex", metavar="REGEX", dest="regex", help="Ne copie que les pages correspondant à cette regex" ) - + def mainloop(self): """ moin-dump's main code. """ @@ -169,6 +169,10 @@ class MoinDump(_util.Script): # On va copier les images os.system("rsync -r --delete /usr/share/moin/htdocs/rightsidebar/img %s/.." % outputdir) + # On finalise + os.system('chmod -R a+r %s/..' % outputdir) + os.system('find %s/.. -type d -exec chmod a+x {} \\;' % outputdir) + errlog.close() if errcnt: print >>sys.stderr, "*** %d error(s) occurred, see '%s'!" % (errcnt, errfile)