-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conf/*.sh files are (unnecessarily?) tricky to override #90
Comments
@ctm, the design is definitely deliberate. The Without getting into too much detail, for your specific use case: if you are you are mounting a configuration directory anyway, you might as well manually edit the configuration settings in each file to your liking. One solution would be to:
The Honestly, with a full conf dir mount, I would suggest making a Note: I said "Without getting into too much detail, for your specific use case" because it seems that you are already mounting to |
@ctm how to you start your container? What volumes do you mount? |
@SISheogorath I use
and have also verified that the same invocation, but without the
still works (and gives the default configuration). Beyond the mods in my PR, I locally have changed two
I found that without adding the If my changes are inappropriate, a little extra documentation (explaining, at minimum, the expected different behavior between the |
I'm super happy with inspircd-docker. It's allowed me to get an IRC server running locally really quickly. I'm not super familiar with Docker, but I was able to trivially update some
conf/*.conf
files so that I could have a lot more local connections while I develop my software.However, when I wanted an oper to be able to use the
sajoin
command I editedconf/opers.sh
and that didn't work. I wasn't too surprise, because there was a warning in that file about not editing it after a build. After (way too much?) futzing around, I think I understand what is happening, but I can't tell if it's a deliberate design decision or just the fallout of incremental development.AFAICT (and I may be wrong), because
conf/inspircd.conf
has lines like:that pulls
opers.sh
in from a directory that is not overwritten when people use the-v
option of docker to create a bind mount. However, the*.conf
files are overwritten.Locally I've created a
consistent_configuration
branch that usesinspircd/conf
instead ofconf
, e.g.,and it works for me. However, I do not know why the code is the way it is and it's quite possible that my branch is worse for other use cases. However, if my upcoming PR is inappropriate, then it may be worth adding a little to
README.md
to explain the dichotomy between the.conf
and the.sh
files.The text was updated successfully, but these errors were encountered: