]> git.decadent.org.uk Git - dak.git/commitdiff
adding grants
authorMike O'Connor <stew@dhcp-101.dfw1.kickstart.lan>
Thu, 29 Oct 2009 16:06:23 +0000 (16:06 +0000)
committerMike O'Connor <stew@dhcp-101.dfw1.kickstart.lan>
Thu, 29 Oct 2009 16:06:23 +0000 (16:06 +0000)
Signed-off-by: Mike O'Connor <stew@dhcp-101.dfw1.kickstart.lan>
dak/dakdb/update17.py

index 0d7efa9efec6c77e325aaa4c885e1766477452d4..b5bbb3cce22bd805cdfc92a39bc1a55caf7438c9 100644 (file)
@@ -52,6 +52,9 @@ def do_update(self):
 
         c.execute("""CREATE INDEX ind_bin_contents_binary ON bin_contents(binary_id);""" )
 
+        c.execute("GRANT ALL ON bin_contents TO ftpmaster;")
+        c.execute("GRANT SELECT ON bin_contents TO public;")
+
         self.db.commit()
 
     except psycopg2.ProgrammingError, msg: