From 6a6c9c4f4a0e2c1c19360ec3f0e0c9e69586d2e6 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 17 Nov 2022 10:48:32 -0500 Subject: [PATCH] Add check for database existing before migrations Fixes #38 --- rffmpeg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rffmpeg b/rffmpeg index 3c08572..56f88ee 100755 --- a/rffmpeg +++ b/rffmpeg @@ -490,6 +490,9 @@ def run_control(config): """ rffmpeg CLI interface """ + if not Path(config["state_dir"]).is_dir() or not Path(config["db_path"]).is_file(): + return + # List all DB migrations here did_alter_0001AddServername = False # Check conditions for migrations