Skip to content

Conversation

binford2k
Copy link
Contributor

Prior to this, if OpenVox was installed via gem and the first command you run is setting configuration then it fails because confdir doesn't exist yet. This corrects that.

It doesn't bother setting permissions because future runs will correct the permissions.

@bastelfreak
Copy link
Contributor

@binford2k can you please rebase? Tests should pass afterwards.

Comment on lines +174 to 175
Puppet::FileSystem.dir_mkpath(path)
Puppet::FileSystem.touch(path)
Copy link
Contributor

Choose a reason for hiding this comment

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

A thought to go in the other direction: should it return if the file doesn't exist? What's the point in creating an empty file and then reading it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's not "reading" the file, it's opening it and manipulating it. Which ultimately means either changing the contents or adding content -- but the difference is irrelevant.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yes, my bad.

Prior to this, if OpenVox was installed via gem and the first command you
run is setting configuration then it fails because `confdir` doesn't exist
yet. This corrects that.

It doesn't bother setting permissions because future runs will correct the permissions.
@binford2k binford2k added the bug Something isn't working label Aug 26, 2025
@binford2k binford2k merged commit d2ddf8d into main Aug 27, 2025
15 checks passed
@binford2k binford2k deleted the binford2k-patch-1 branch August 27, 2025 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants