From: Mike O'Connor Date: Thu, 29 Oct 2009 16:06:23 +0000 (+0000) Subject: adding grants X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=920d911bdbf68098827e050ec4d1b59a1fa8f419;p=dak.git adding grants Signed-off-by: Mike O'Connor --- diff --git a/dak/dakdb/update17.py b/dak/dakdb/update17.py index 0d7efa9e..b5bbb3cc 100644 --- a/dak/dakdb/update17.py +++ b/dak/dakdb/update17.py @@ -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: