From 44df8906cbbecbccc3529da29a3edf722a749be5 Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Sun, 29 Jul 2018 02:19:30 -0700 Subject: [PATCH] Create /opt/tljh if it does not exist in installer This helps when you are just running the installer, without the bootstrap --- tljh/installer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tljh/installer.py b/tljh/installer.py index 712bafb..d8f67ca 100644 --- a/tljh/installer.py +++ b/tljh/installer.py @@ -24,6 +24,7 @@ rt_yaml = YAML() # Set up logging to print to a file and to stderr logger = logging.getLogger(__name__) +os.makedirs(INSTALL_PREFIX, exist_ok=True) file_logger = logging.FileHandler(os.path.join(INSTALL_PREFIX, 'installer.log')) file_logger.setFormatter(logging.Formatter('%(asctime)s %(message)s')) logger.addHandler(file_logger)