From 7f16a8b9b55e8da58281abb697f0710f505719cf Mon Sep 17 00:00:00 2001 From: prash3r Date: Sun, 2 Oct 2022 19:01:14 +0200 Subject: [PATCH] not copying empty cbpi_dashboard_1.json anymore. will be created on first dashboard save instead. --- cbpi/configFolder.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cbpi/configFolder.py b/cbpi/configFolder.py index b35d4a1..be01fc0 100644 --- a/cbpi/configFolder.py +++ b/cbpi/configFolder.py @@ -170,11 +170,6 @@ class ConfigFolder: self.copyDefaultFileIfNotExists("craftbeerpi.service") self.copyDefaultFileIfNotExists("chromium.desktop") - if os.path.exists(os.path.join(self.configFolderPath, "dashboard", "cbpi_dashboard_1.json")) is False: - srcfile = os.path.join(os.path.dirname(__file__), "config", "dashboard", "cbpi_dashboard_1.json") - destfile = os.path.join(self.configFolderPath, "dashboard") - shutil.copy(srcfile, destfile) - print("Config Folder created") def create_home_folder_structure(configFolder):