Updated install script to only create SQLite file
This commit is contained in:
parent
5ec2a86d08
commit
0cc00ef911
@ -27,7 +27,9 @@ with app.app_context():
|
||||
with open(f'./{data}/.encryption.key', 'wb') as key_file:
|
||||
key = Fernet.generate_key()
|
||||
key_file.write(key)
|
||||
if not database_exists(database_uri):
|
||||
create_database(database_uri)
|
||||
write('system.log', 'No database found. Creating a new database.')
|
||||
db.create_all()
|
||||
|
||||
"""Create File for SQLite Database"""
|
||||
if database_uri[0:6].lower() == 'sqlite':
|
||||
if not database_exists(database_uri):
|
||||
create_database(database_uri)
|
||||
write('system.log', 'No SQLite file found. Creating a new database.')
|
Loading…
Reference in New Issue
Block a user