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

dietpi-update to beta v6.25.3 fails because of pihole #3144

Closed
AaronDavidSchneider opened this issue Oct 8, 2019 · 3 comments
Closed

dietpi-update to beta v6.25.3 fails because of pihole #3144

AaronDavidSchneider opened this issue Oct 8, 2019 · 3 comments
Labels
Beta 🧪 Issues specific to the Beta branch testing Bug 🐞 Solution available 🥂 Definite solution has been done
Milestone

Comments

@AaronDavidSchneider
Copy link

AaronDavidSchneider commented Oct 8, 2019

Steps to reproduce:

  1. dietpi installation with pihole installed (via dietpi-software)
  2. follow the steps at https://github.com/MichaIng/DietPi/blob/master/BRANCH_SYSTEM.md

Expected behaviour:

  • update proceeds

Actual behaviour:

  • update fails

Extra details:

Additional logs:

/etc/apache/sites-available/dietpi-pihole-block_public_admin.conf: No such file or directory

related: #3131

@AaronDavidSchneider AaronDavidSchneider changed the title dietpi-update to beta v6.25.3 fails because of pihole dietpi-update to beta v6.25.3 fails because of pihole Oct 8, 2019
@MichaIng MichaIng added Beta 🧪 Issues specific to the Beta branch testing Bug 🐞 labels Oct 8, 2019
@MichaIng MichaIng added this to the v6.26 milestone Oct 8, 2019
MichaIng added a commit that referenced this issue Oct 8, 2019
+ DietPi-Patch | Typo, @AaronDavidSchneider many thanks for reporting: #3144
@MichaIng
Copy link
Owner

MichaIng commented Oct 8, 2019

@AaronDavidSchneider
Many thanks for reporting. Indeed a typo in patch file. Just fixed it: 94c4af3

Fix will be merged with v6.26.2 into Beta. Since the update finishes regardless (right?), please do the following to reapply/fix it:

mkdir -p /etc/apache/sites-available
dietpi-update -1
mv /etc/apache/sites-available/dietpi-pihole-block_public_admin.conf /etc/apache2/sites-available/dietpi-pihole-block_public_admin.conf
rm -R /etc/apache

Side note: This config allows to block Pi-hole admin panel access for requests from outside your local network, if you even opened webserver access to www . On fresh Pi-hole installs it is interactively asked if this is wanted or not, on update we just place the file. If wanted you can run:

a2ensite dietpi-pihole-block_public_admin
systemctl reload apache2

@MichaIng MichaIng added the Solution available 🥂 Definite solution has been done label Oct 8, 2019
@MichaIng MichaIng mentioned this issue Oct 8, 2019
@AaronDavidSchneider
Copy link
Author

thanks for the fix!
I really like this feature by the way

@MichaIng
Copy link
Owner

MichaIng commented Oct 8, 2019

@AaronDavidSchneider
Thanks for feedback. Jep it simply makes sense. Most likely we gonna implement similar things for other web applications as well, e.g. a separate script to toggle public/LAN-only/host-only access for each application. Reasonable control when one has different websites/applications where usually not all of them shall be accessible for same remote-hosts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beta 🧪 Issues specific to the Beta branch testing Bug 🐞 Solution available 🥂 Definite solution has been done
Projects
None yet
Development

No branches or pull requests

2 participants