We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d443d99 commit 29d84ccCopy full SHA for 29d84cc
hubblestack/daemon.py
@@ -667,7 +667,9 @@ def _setup_logging(parsed_args):
667
pass # ensure the file exists before we set perms on it
668
# 384 is 0o600 permissions, written without octal for python 2/3 compat
669
os.chmod(__opts__['log_file'], 384)
670
- os.chmod(parsed_args.get('configfile'), 384)
+ configfile = parsed_args.get('configfile')
671
+ if configfile and os.path.isfile(configfile):
672
+ os.chmod(configfile, 384)
673
674
675
def _setup_dirs():
0 commit comments