[backups] Erreur d'écriture

This commit is contained in:
Pierre-Elliott Bécue 2014-04-18 14:55:27 +02:00
parent f587996781
commit 770489aab7

View file

@ -34,7 +34,7 @@ if __name__ == "__main__":
fichier.write("""$Conf{RsyncShareName} = ['%(shares)s']; fichier.write("""$Conf{RsyncShareName} = ['%(shares)s'];
$Conf{BackupFilesExclude} = { $Conf{BackupFilesExclude} = {
%(excludes)s %(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.chmod(rootpath + hoteRsync + ".pl", 0644)
os.chown(rootpath + hoteRsync + ".pl", root, wwwdata) os.chown(rootpath + hoteRsync + ".pl", root, wwwdata)