From 418f92ae6d96c563f8f0bdc66660b0e69fa3ef2e Mon Sep 17 00:00:00 2001 From: Curt Hash Date: Wed, 14 Oct 2009 16:51:56 -0600 Subject: [PATCH] changed makedb script to make the db read only --- puzzles/webapp/80/,makedb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/puzzles/webapp/80/,makedb.py b/puzzles/webapp/80/,makedb.py index 0c1ea7c..d6c886f 100755 --- a/puzzles/webapp/80/,makedb.py +++ b/puzzles/webapp/80/,makedb.py @@ -4,6 +4,7 @@ import os import sys import sqlite3 import base64 +import stat # new db if os.path.exists(',zomg.sqlite3'): @@ -41,3 +42,4 @@ db.commit() cur.close() db.close() +os.chmod(',zomg.sqlite3', stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)