From 770489aab796661fcb5efbdfac56f4c6ff4f5e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Fri, 18 Apr 2014 14:55:27 +0200 Subject: [PATCH] =?UTF-8?q?[backups]=20Erreur=20d'=C3=A9criture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backups/generate_configs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backups/generate_configs.py b/backups/generate_configs.py index 933da9de..7c58b311 100755 --- a/backups/generate_configs.py +++ b/backups/generate_configs.py @@ -34,7 +34,7 @@ if __name__ == "__main__": fichier.write("""$Conf{RsyncShareName} = ['%(shares)s']; $Conf{BackupFilesExclude} = { %(excludes)s -};""" % {'shares' : ", ".join(backup_folders.keys()), 'excludes' : "\n ".join(["'%s' => ['lost+found']," % nom for nom in backup_folders.keys()])}) +};""" % {'shares' : "', '".join(backup_folders.keys()), 'excludes' : "\n ".join(["'%s' => ['lost+found']," % nom for nom in backup_folders.keys()])}) os.chmod(rootpath + hoteRsync + ".pl", 0644) os.chown(rootpath + hoteRsync + ".pl", root, wwwdata)