Skip to content
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

Support for Pi-hole running as Docker container #162

Merged
merged 7 commits into from
Sep 2, 2020

Conversation

labodj
Copy link
Contributor

@labodj labodj commented Aug 31, 2020

  • Added -d --dir & -D --docker optional arguments.

With -d or --dir you can specify the actual /etc/pihole directory, useful if Pi-hole is running under as Docker container.
With` -D or --docker you can specify if Pi-hole is running as Docker container.

  • Add information about optional arguments in the readme
  • Fixes for out of specs readme MD where possible
  • Fix a double reboot in uninstall script

I'm a C++ programmer, never coded in Python, I've tested my code in Linux environment with Python 3.7.3 and it's working fine.
Linted with VSCode 1.48.2 with Python extension v2020.8.105369

With -d or --dir you can specify the actual /etc/pihole directory, useful if Pi-hole is running under as Docker container.
With -D or --docker you can specify if Pi-hole is running as Docker container.

Code tested with Linux.
- Update readme to add informations about scripts optional arguments for different /etc/pihole directory or docker environment.
- Fixed markdown out of specs things
- Add image alt text where missing
- Use markdown links where possible instead of HTML ones.
- Better code types for code blocks
- Use MD images on demo GIFs instead of HTML
- Add a missing closing bracket
- Add a function that restarts Pi-hole to reduce code verbosity
- Removed a double restart in uninstall script
- Added restart function where needed
@anudeepND
Copy link
Owner

@labodj Thank you so much for your contribution. I have tested it myself and everything works fine. Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants