mirror of https://github.com/dirtbags/moth.git
changed makedb script to make the db read only
This commit is contained in:
parent
e622fd70b7
commit
418f92ae6d
|
@ -4,6 +4,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import base64
|
import base64
|
||||||
|
import stat
|
||||||
|
|
||||||
# new db
|
# new db
|
||||||
if os.path.exists(',zomg.sqlite3'):
|
if os.path.exists(',zomg.sqlite3'):
|
||||||
|
@ -41,3 +42,4 @@ db.commit()
|
||||||
cur.close()
|
cur.close()
|
||||||
db.close()
|
db.close()
|
||||||
|
|
||||||
|
os.chmod(',zomg.sqlite3', stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
|
||||||
|
|
Loading…
Reference in New Issue