mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-24 15:13:42 +00:00
download a copy of the vars
Once downloaded, we can source it and use it for the install script
This commit is contained in:
parent
e57ff3f462
commit
276c97bbe0
1 changed files with 24 additions and 10 deletions
16
automated install/basic-install.sh
Executable file → Normal file
16
automated install/basic-install.sh
Executable file → Normal file
|
@ -18,6 +18,21 @@
|
|||
|
||||
|
||||
######## VARIABLES #########
|
||||
# First get the .vars file that will be needed to process the rest of the script
|
||||
curl -o /tmp/pihole.vars https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/pihole.vars
|
||||
chmod 755 /tmp/pihole.vars
|
||||
source /tmp/pihole.vars
|
||||
|
||||
# Make ure the Pi-hole directory exists before proceeding
|
||||
$SUDO mkdir -p $piholeDir 2>/dev/null
|
||||
|
||||
# Make a symlink in /etc
|
||||
$SUDO ln -s $piholeDir /etc/pihole 2>/dev/null
|
||||
|
||||
# Download a permanent copy of the sources file now that the Pi-hole dir exists
|
||||
$SUDO curl -o /usr/local/etc/pihole/pihole.vars https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/pihole.vars
|
||||
|
||||
# The other variables below are just needed for the install and don't need to be permanent
|
||||
|
||||
tmpLog=/tmp/pihole-install.log
|
||||
instalLogLoc=/etc/pihole/install.log
|
||||
|
@ -589,4 +604,3 @@ echo ":::"
|
|||
echo "::: If you set a new IP address, you should restart the Pi."
|
||||
echo "::: "
|
||||
echo "::: The install log is located at: /etc/pihole/install.log"
|
||||
|
||||
|
|
Loading…
Reference in a new issue