Skip to content

Commit a6c891a

Browse files
authored
Merge pull request #785 from jettero/384-fileperms
fix minor clean-install bug with configfile permissions
2 parents d443d99 + 29d84cc commit a6c891a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hubblestack/daemon.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,9 @@ def _setup_logging(parsed_args):
667667
pass # ensure the file exists before we set perms on it
668668
# 384 is 0o600 permissions, written without octal for python 2/3 compat
669669
os.chmod(__opts__['log_file'], 384)
670-
os.chmod(parsed_args.get('configfile'), 384)
670+
configfile = parsed_args.get('configfile')
671+
if configfile and os.path.isfile(configfile):
672+
os.chmod(configfile, 384)
671673

672674

673675
def _setup_dirs():

0 commit comments

Comments
 (0)