As the code continues regardless, only show a warning

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
simonmicro 2025-11-08 13:08:32 +01:00 committed by GitHub
parent 7098a455c3
commit af78d24b94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,7 +45,7 @@ def change_uid_grp(logger):
os.chmod(fPath, 0o600)
logger.debug(subprocess.check_output(['ls', '-la', dbPath]).decode())
else:
logger.error(f'Database path {dbPath} is not a directory, will not correct owner permissions.')
logger.warning(f'Database path {dbPath} is not a directory, will not correct owner permissions.')
if 'LOGFILE' in os.environ and os.path.exists(os.environ['LOGFILE']):
# Oh, the user also wants a custom log file -> make sure start.py can access it by setting the correct permissions (777)
os.chmod(os.environ['LOGFILE'], 0o777)