Revision 817a030d
b/daemons/ganeti-noded | ||
---|---|---|
664 | 664 |
packaging. |
665 | 665 |
|
666 | 666 |
""" |
667 |
dirs = [(val, 0755) for val in constants.SUB_RUN_DIRS]
|
|
667 |
dirs = [(val, constants.RUN_DIRS_MODE) for val in constants.SUB_RUN_DIRS]
|
|
668 | 668 |
dirs.append((constants.LOG_OS_DIR, 0750)) |
669 | 669 |
for dir_name, dir_mode in dirs: |
670 | 670 |
if not os.path.exists(dir_name): |
b/lib/constants.py | ||
---|---|---|
84 | 84 |
RUN_GANETI_DIR = RUN_DIR + "/ganeti" |
85 | 85 |
BDEV_CACHE_DIR = RUN_GANETI_DIR + "/bdev-cache" |
86 | 86 |
DISK_LINKS_DIR = RUN_GANETI_DIR + "/instance-disks" |
87 |
RUN_DIRS_MODE = 0755 |
|
87 | 88 |
SOCKET_DIR = RUN_GANETI_DIR + "/socket" |
88 | 89 |
SOCKET_DIR_MODE = 0700 |
89 | 90 |
# keep RUN_GANETI_DIR first here, to make sure all get created when the node |
Also available in: Unified diff