From f4073c30ac615825ec0883d1a837e19afaa83d29 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sat, 9 Oct 2021 16:35:10 -0700 Subject: [PATCH] Move docker mount log message --- plexpy/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plexpy/__init__.py b/plexpy/__init__.py index 7fbe54ec..4551fdfd 100644 --- a/plexpy/__init__.py +++ b/plexpy/__init__.py @@ -242,12 +242,6 @@ def initialize(config_file): sys.version.replace('\n', '') )) - if DOCKER and not DOCKER_MOUNT: - logger.warn( - "Docker /config volume not mounted. " - "All data may be cleared when the container is recreated or updated." - ) - logger.info("Program Dir: {}".format( PROG_DIR )) @@ -258,6 +252,12 @@ def initialize(config_file): DB_FILE )) + if DOCKER and not DOCKER_MOUNT: + logger.warn( + "Docker /config volume not mounted. Using a Docker volume instead. " + "All data may be cleared when the container is recreated or updated." + ) + CONFIG.BACKUP_DIR, _ = check_folder_writable( CONFIG.BACKUP_DIR, os.path.join(DATA_DIR, 'backups'), 'backups') CONFIG.CACHE_DIR, _ = check_folder_writable(