Skip to content

Directories#1

Merged
willmcgugan merged 5 commits intomasterfrom
directories
Jan 21, 2021
Merged

Directories#1
willmcgugan merged 5 commits intomasterfrom
directories

Conversation

@willmcgugan
Copy link
Copy Markdown
Owner

Adds [directory:x] sections. For context see my comment on Supervisor#120

Comment thread supervisor/options.py
self.serverurl = None

self.server_configs = sconfigs = section.server_configs
self.directories = section.directories
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so section would be configparser section which defaults to None if not present ?

Comment thread supervisor/options.py
Comment thread supervisor/options.py
% (self.name, self.path)
)
else:
if self.create:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the syntax support chowning the directory? if the directory is supposed to be created in /tmp then it will suffice but otherwise it may result with a permission error. had this be created by root then the config could also have a syntax for chown'ing the created directory

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe is should. There was a comment at the end of Supervisor#120 that suggested it didn't need to change the ownership.

@willmcgugan willmcgugan merged commit d2550cf into master Jan 21, 2021
@willmcgugan willmcgugan deleted the directories branch January 21, 2021 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants