Create /opt/tljh if it does not exist in installer

This helps when you are just running the installer,
without the bootstrap
This commit is contained in:
yuvipanda
2018-07-29 02:19:30 -07:00
parent 414d3932ac
commit 44df8906cb

View File

@@ -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)