From af4d0248d907237128cb24e8fc66dbf65e7338b2 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 22 Jan 2016 10:17:17 -0800 Subject: [PATCH] Revert https cert and key to custom directory --- plexpy/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexpy/__init__.py b/plexpy/__init__.py index 61f55ca7..dac567c5 100644 --- a/plexpy/__init__.py +++ b/plexpy/__init__.py @@ -95,9 +95,9 @@ def initialize(config_file): 'HTTP_PORT out of bounds: 21 < %s < 65535', CONFIG.HTTP_PORT) CONFIG.HTTP_PORT = 8181 - if not CONFIG.HTTPS_CERT.startswith(os.path.abspath(DATA_DIR)): + if not CONFIG.HTTPS_CERT: CONFIG.HTTPS_CERT = os.path.join(DATA_DIR, 'server.crt') - if not CONFIG.HTTPS_KEY.startswith(os.path.abspath(DATA_DIR)): + if not CONFIG.HTTPS_KEY: CONFIG.HTTPS_KEY = os.path.join(DATA_DIR, 'server.key') if not CONFIG.LOG_DIR.startswith(os.path.abspath(DATA_DIR)):