Updated install script to only create SQLite file

This commit is contained in:
Vivek Santayana 2022-08-20 16:50:34 +01:00
parent 5ec2a86d08
commit 0cc00ef911

View File

@ -27,7 +27,9 @@ with app.app_context():
with open(f'./{data}/.encryption.key', 'wb') as key_file: with open(f'./{data}/.encryption.key', 'wb') as key_file:
key = Fernet.generate_key() key = Fernet.generate_key()
key_file.write(key) key_file.write(key)
if not database_exists(database_uri):
create_database(database_uri) """Create File for SQLite Database"""
write('system.log', 'No database found. Creating a new database.') if database_uri[0:6].lower() == 'sqlite':
db.create_all() if not database_exists(database_uri):
create_database(database_uri)
write('system.log', 'No SQLite file found. Creating a new database.')