mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user