diff --git a/ref-test/install.py b/ref-test/install.py index 05d140f..3b52dd2 100755 --- a/ref-test/install.py +++ b/ref-test/install.py @@ -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() \ No newline at end of file + + """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.') \ No newline at end of file