Closed akosveres closed 7 years ago
I started this response on a very different train of thought, and wrote why it should be mounted to one place over another- but then I realized you were just pointing out my inconsistency in documentation paths!
You could do it wherever you want, as long as your eggdrop config points to the same place. But, your question did get me thinking and realize that mounting a host dir to eggdrop/scripts would replace the docker.tcl script that is currently sourced from there (thus causing a crash on start), so I'll push something to correct that use case.
Bottom line though, just match your -v mount to whatever you add in the config file- it could be /home/eggdrop/eggdrop/banana/hammock/partytime, as long as the path in your config matches!
Thanks for the input! I'll update the documentation, and also fix this use case!
Yes, that was my thought as well, since /scripts is used by other scripts, especially with more tcl files, it would replace everything. Thx for the feedback.
Added an error check to the config, so that if docker.tcl isn't found, eggdrop can still continue its boot. I figure this is ok since all docker.tcl does is yell at the user if they haven't mounted a dir for persistence. If the user is mounting a scripts dir, I think it's fair to assume they understood what docker.tcl is telling them to do, so no loss to not have that nag occur.
Thanks again
README.md sais:
Is it /home/eggdrop/eggdrop/data or /home/eggdrop/eggdrop/scripts ?