Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Install Failed]: /etc/pihole/versions: Permission denied for PiHole Version 6 #1898

@HawkingJan

Description

@HawkingJan

In raising this issue I confirm that

Describe the issue

During installation via
curl -L https://raw.githubusercontent.com/pivpn/pivpn/master/auto_install/install.sh | bash
the identificaction of pihole version fails and therefore the wrong branch in the if/else-statment is choosen

Processing triggers for man-db (2.11.2-2) ...
:::    Package wireguard-tools successfully installed!
:::    Package qrencode successfully installed!
main: line 2363: /etc/pihole/versions: Permission denied
Usage: pihole [options]
Example: 'pihole allow -h'
Add '-h' after specific commands for more information on usage

The command in line 2363 is
CORE_VERSION="$(source "$piholeVersions" && echo "${CORE_VERSION}")"
with $piholeVersions set to
/etc/pihole/versions"

Expected behavior

Identify PiHole version 6 and follow if/else-statment accordingly

Please describe the steps to replicate the issue

Install PiHole version 6 (v6.0.5)
Start installation of PiVPN via curl -L https://raw.githubusercontent.com/pivpn/pivpn/master/auto_install/install.sh | bash
Accept all the defaults

Have you taken any steps towards solving your issue?

Changing the line 2363 in install.sh to

CORE_VERSION="$(source <(${SUDO} cat "$piholeVersions") && echo "${CORE_VERSION}")"

Screenshots

No response

Where did you run pivpn?

RaspberryPi

Please provide your output from uname -a

6.6.51+rpt-rpi-v6 #1 Raspbian 1:6.6.51-1+rpt3 (2024-10-08) armv6l GNU/Linux

Details about Operative System

PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
NAME="Raspbian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Metadata

Metadata

Assignees

No one assigned

    Labels

    On Holdwe want it .. buuut not just yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions