Commit Graph

1281 Commits (cdd4d9ea9e51c8110df832d5fadeb44bc90b5085)

Author SHA1 Message Date
pvogt09 a993b8b34d fixes #3217 by checking for existing pihole group
4 years ago
Antoine Tenart 16f664cdb4 basic_install: remove remaining references to hosts-file.net
4 years ago
Adam Warner dc35709a1b
Remove hosts-file.net from default lists
4 years ago
Adam Warner 4994da5170
Update automated install/basic-install.sh
4 years ago
Adam Warner 175d32c5f6
Set nameservers to be that which have been chosen by the user in the whiptail
4 years ago
Adam Warner 1481cc583f
Don't set nameserver in dhcpcd.conf
4 years ago
Adam Warner dbc54b3063
remove resolvconf dep
4 years ago
MichaIng bb936f4fdb
Reduce apt-get install verbosity
4 years ago
XhmikosR 7b8611ced0
Assorted typo fixes. (#3126)
4 years ago
msamendinger d16b472592 Remove wget from PIHOLE_DEPS
4 years ago
Adam Warner 6104d81622
Safeguard against colour output in grep commandadd -i to grep to make search for "Location" case-insensitive
4 years ago
Adam Warner 7be019ff52
No need to determine the latest tag, we can just go direct
4 years ago
DL6ER 75633f0950
Install php-intl and trust the system to install the right extension. We've seen reports that just installing php5-intl or php7-intl isn't sufficient and that we need the meta package as well.
4 years ago
Adam Warner 1072078e26
Change to use API instead of the Location Header
4 years ago
pvogt09 b0f1333657 Move permission change behind git reset (like in update_repo()) and remove whitespace at end of line
4 years ago
Adam Warner 0a70bbd255
Merge pull request #3120 from canihavesomecoffee/patch-1
4 years ago
Willem c91d9cc0b6 Update Cameleon blacklist url to use https
4 years ago
DL6ER cfa909a93d
Add package php-intl for AdminLTE#1130.
4 years ago
Adam Warner e0fde41d87
Merge pull request #3066 from pi-hole/centos8_support
4 years ago
bcambl ec8f4050d0 Update installer to support CentOS 8
4 years ago
bcambl 60c51886e0 remove unused debian deps (apt-utils debconf)
4 years ago
bcambl cbb1461010 add stdout horizontal rule to install_dependent_packages()
4 years ago
bcambl 07cc5b501c replace debconf-apt-progress with apt-get in install_dependent_packages()
4 years ago
bcambl ebb1a730c1 remove unused fedora/centos dependency: dialog
4 years ago
MichaIng 9dff55b212 Installer | Remove "dialog" from Debian/Ubuntu installer deps
4 years ago
Adam Warner d1bce7e685
Merge pull request #2995 from pi-hole/tweak/NoFurtherThanLatestTag
5 years ago
Adam Warner 7c2bbf840a
Merge pull request #2993 from MichaIng/patch-3
5 years ago
MichaIng 85673b8273
Print name of chosen upstream DNS as well
5 years ago
Adam Warner 583ea4d17a
Merge branch 'development' into development
5 years ago
Adam Warner edcdf9f619
Merge pull request #3003 from pi-hole/fix/tbd
5 years ago
Adam Warner 12817c09bb
(Squashed commits)
5 years ago
Adam Warner 4840bdb031
add a double space to the beginning of some outputs
5 years ago
Adam Warner a85e7a2a43
Merge pull request #2999 from pi-hole:fix/api_utf8_encoding
5 years ago
DL6ER 61d233f069
Merge pull request #2964 from bcambl/selinux_enforcing
5 years ago
DL6ER d457d40e0b
Add php-xml package as new dependency.
5 years ago
Adam Warner 6571a63ffa
Add --tags to descibe command
5 years ago
Adam Warner a7e81c8ea0
remove extra space
5 years ago
Adam Warner 73d9abae3e
And finally, we please stickler
5 years ago
Adam Warner c8b9e42649
Please Codefactor.
5 years ago
Adam Warner 62c00ae1d8
pushd/popd instead of juggling with a variable
5 years ago
MichaIng ea67c828cd
Minor installer output enhancements
5 years ago
Adam Hill 3fbb0ac8dd
Adding docker+arm detection & FTL download
5 years ago
Adam Warner 71903eb27f
Add in checks to reset cloned repo to the lastest available release
5 years ago
bcambl 612d408034 replace echo with printf in install_dependent_packages()
5 years ago
bcambl a86f578139 replace echo with printf in checkSelinux()
5 years ago
bcambl 81ca78e7f4 exit installer if SELinux is enforcing
5 years ago
bcambl fc0899b2ad fix fedora dependency check/install stdout
5 years ago
DL6ER 149fb0c216
Do not install a blank regex file.
5 years ago
Adam Warner 61a40c1b43
merge devel into 4.3.2 And Resolve merge conflicts
5 years ago
DL6ER f582344b9a
"No default index.lighttpd.html file found... not backing up" is not an error.
5 years ago
Dan Schaper 4cfe463dfa
Add back dropped binary call.
5 years ago
Dan Schaper 03c65dd0e9
Convert hardcoded /usr/local/bin to variable
5 years ago
DL6ER 1820c2c598
Merge branch 'development' into new/whitelist-regex-support
5 years ago
Mcat12 febdbceab1
Fix error when getting latest FTL tag
5 years ago
David Haguenauer 34727c00c6
Drop indirection from install_dependent_packages
5 years ago
Mcat12 b107ae2ab9
Use the filtered IPv6 OpenDNS servers
5 years ago
Mcat12 d5d1a607ad
Fix PKG_REMOVE array usage
5 years ago
Mcat12 2594164772
Use an array for PKG_REMOVE
5 years ago
Mcat12 209555c42e
Fix uninstall causing 403 errors and not removing packages
5 years ago
Mcat12 da398c3d9c
Print an error message if the FTL release metadata download fails
5 years ago
Mcat12 4e0ad52001
Fix ShellCheck issue by refactoring a bit
5 years ago
Mcat12 c9829dd3e4
Fix pihole -up showing FTL update when network is down
5 years ago
B. Olausson ab1ea5a366
This change fixes issue #145 "stty: standard input: Inappropriate ioctl for device ".It checks if a real terminal exist, if not it sets the screen size to a fixed value. This helps to avoid nasty and unnecessary logs when running "pihole -up" via e.g. cron.
5 years ago
bcambl 10de7f649b
add chkconfig to INSTALLER_DEPS (CentOS/Fedora)
5 years ago
Mcat12 71d5b42726
Remove the ZeusTracker blocklist from the defaults
5 years ago
DL6ER 4371c9ba03
Ensure proper permissions are set for gravity.db after creation.
5 years ago
B. Olausson ecd6817aaf
This change fixes issue #145 "stty: standard input: Inappropriate ioctl for device ".It checks if a real terminal exist, if not it sets the screen size to a fixed value. This helps to avoid nasty and unnecessary logs when running "pihole -up" via e.g. cron.
5 years ago
Mark Drobnak 3420439f31
Merge pull request #2820 from pi-hole/fix/ftl-update-no-network
5 years ago
Mcat12 38ff343134
Print an error message if the FTL release metadata download fails
5 years ago
Mcat12 c3ec2e68ad
Remove the ZeusTracker blocklist from the defaults
5 years ago
Mcat12 c156af020c
Use suggested array creation to fix linter error
5 years ago
Mark Drobnak fa8751f9ad
Fix error when checking if IP address is valid
5 years ago
bcambl ec850dc820 add chkconfig to INSTALLER_DEPS (CentOS/Fedora)
5 years ago
Mcat12 37e7cd5211
Fix ShellCheck issue by refactoring a bit
5 years ago
Mcat12 91a2d052a7
Fix pihole -up showing FTL update when network is down
5 years ago
Mcat12 974bba4a45
Fix PKG_REMOVE array usage
5 years ago
Mcat12 951732fc1b
Use an array for PKG_REMOVE
5 years ago
Mcat12 b6700924b2
Fix uninstall causing 403 errors and not removing packages
5 years ago
Mcat12 c8987e20c2
Use the filtered IPv6 OpenDNS servers
5 years ago
Dan Schaper 7de6bbca61
Merge branch 'development' into release/v4.3
5 years ago
David Haguenauer be3a21ae07 Put quotes at ends of strings
5 years ago
David Haguenauer 69081a9175 Drop indirection from install_dependent_packages
5 years ago
David Haguenauer ab2f8a0c09 Quote variables in basic-install.sh
5 years ago
Mcat12 8e1bf6e3d4
Merge branch 'development' into new/gravitydb
5 years ago
pvogt09 efbd42f7b5 Moves creation of pihole user before FTL installation
5 years ago
pvogt09 e076db5a4e Changes ownership of macvendor.db to pihole
5 years ago
pvogt09 2e6198077d chmod 644 adlists.list
5 years ago
DL6ER 95150a5d85
Clone twenty instead of only one commit when installing Pi-hole. This ensures that we clone at least one tagged commit in case we need to push changes to master.
5 years ago
pvogt09 4d23b3267f Adds X to chmod for git operations
5 years ago
pvogt09 e19adccd9c Moves chmod for /var/www/html into INSTALL_WEB_SERVER block
5 years ago
pvogt09 a25f331e83 Adds chmod 644 for /var/www and /var/www/html
5 years ago
pvogt09 69c06ba6fe Sets permissions for dnsmaq.conf
5 years ago
pvogt09 2c3a27e9c7 Replaces cp chmod with install and add read permission to repository files after checkout and pull
5 years ago
pvogt09 8a92fb24c4 Incorporates changes requested by @Mcat12
5 years ago
pvogt09 5c575e73c7 Adds world readable attribute to files created by Pi-hole to circumvent #2724
5 years ago
Mcat12 466fd79c66
Fix getting IP address in the presence of similar subnets
5 years ago
DL6ER 0efc46260f
Use both old and new strings for detecting whether this is a Pi-hole dnsmasq config file
5 years ago
DL6ER ee4dabeca6
Merge branch 'development' into new/gravitydb
5 years ago
DL6ER c13ebd3a9d
Replace Pi-hole ID string with another line we intend to keep
5 years ago
Jan Piskvor Martinec 037737d653 Show $UPDATE_PKG_CACHE content in error message.
5 years ago
Mcat12 78c0c58946
Add a link to the documentation on FTL privacy levels during install
5 years ago
DL6ER 817b19888f
Merge branch 'development' into fix/FTL_arch_detect_rpm
5 years ago
Andrei Picus e9e92368b0 Fix uninstalling lighttpd when it's not installed
5 years ago
DL6ER 9867b7fccf
Don't fail when trying to detect OS architecture on RPM-based systems
5 years ago
Andreas Schneider 860ec1a7c4 basic_install: Use install for sudoers
5 years ago
Andreas Schneider 2f189cd076 basic_install: There is no pihole group, remove it
5 years ago
Andreas Schneider 2f0e6a6dda basic_install: Make sure the PI_HOLE_CONFIG_DIR exists
5 years ago
Andreas Schneider f187b42a98 basic_install: Define webroot globally as a variable
5 years ago
Andreas Schneider 838e1b19ec basic_install: Set permissons for PI_HOLE_DASHBOARD_DIR
5 years ago
Andreas Schneider d5bbb2b640 basic_install: Use a varibale for the pihole dashboard dir
5 years ago
Andreas Schneider dc91d4b1f9 basic_install: If a static interface is already set up we are done
5 years ago
Mcat12 680d6e2d31
Merge branch 'release/v4.2' into development
5 years ago
Adam Warner ae654730c4
Update automated install/basic-install.sh
5 years ago
DL6ER ec79e86bee
We should really use stop_service as it also includes some nice output
5 years ago
DL6ER e8dabc71af
Don't try to start pihole-FTL after it has been installed. This will be done a few moments later when gravity is invoked.
5 years ago
DL6ER 9c0de0f731
Try to stop pihole-FTL before and (re)start pihole-FTL after the install command
5 years ago
DL6ER 4948862dce
Fail hard if FTL binary could not be installed
5 years ago
Mark Drobnak 1e284f69ea
Merge pull request #2587 from pi-hole/new/network-table
5 years ago
DL6ER 516ed83638
Add "|| true" to the curl command as a failed download is no show-stopper for the overall install process.
5 years ago
DL6ER cc657c0c26
Rename subroutine start_service() to restart_service() because this is what it does
5 years ago
DL6ER d90d7b6927
Call FTL download/installation early on in the installation process.
5 years ago
DL6ER de6dc90575
Don't diable pihole-FTL before calling install. root should be able to overwrite the binary in any case. The binary has already been downloaded and hash-verified here so we don't expect any errors in this binary.
5 years ago
DL6ER 3cdd6204c5
Move dnsmasq disabling and config file rewriting into a dedicated subroutine
5 years ago
DL6ER d996e9c9ee
Fix inconsistent handling of binary variable. get_binary_variable() stores the result into a global variable we pass later on as argument to FTLinstall() and define a local variable with the same name. This is fixed by only using the globa variable in all places not. This is still not a very elegant solution but it is also not subject of the current PR.
5 years ago
Mark Drobnak ebba32e1c4
Remove Norton DNS
5 years ago
Mark Drobnak 7d2507527a
Merge pull request #2593 from TheLastProject/feature/standardized-dns-list
5 years ago
Sylvia van Os 97decb3a73 Standardize DNS list and write to file for AdminLTE
5 years ago
DL6ER f360959efc
Download macvendor database from ftl.pi-hole.net when downloading a new FTL binary. Users who want to update the database more frequently than on each FTL release can use the python script from the FTL repository to generate the database themselves. The macvendor database is an optional component so a failing download is no reason to interrupt the installer.
5 years ago
bcambl 3035fbf468 remove unused dependency (bc)
5 years ago
DL6ER c5da1bb952
Add libcap as Fedora dependency
5 years ago
DL6ER 486c41a69a
Add Debain dependency libcap2 needed for FTL's capability check on startup
5 years ago
Florian Freund 0ef4901e48 Add a blank after printf to avoid 'Command not found' error
5 years ago
bcambl eca975a370 add sqlite3 dependency for fedora
6 years ago
bcambl 724afc000f add sqlite3 dependency for fedora
6 years ago
Mark Drobnak d24e0a6060
Merge pull request #2540 from pi-hole/release/v4.1
6 years ago
bcambl 14ebb2fb93 remove 'System' from NetworkManager connection name
6 years ago
Clayton Dobbs 3261c2e273
Added check for universe repo on ubuntu bionic with user prompts.
6 years ago
bcambl c3804877ed linting: Double quote to prevent globbing and word splitting.
6 years ago
bcambl c0bc93c7c4 break dhcpcd and ifcfg network configurations into separate functions
6 years ago
DL6ER e1c3c53058
Merge branch 'release/v4.1' into fix/adlists.list_not_created
6 years ago
Dan Schaper 057fbfc2b9
Change field from digit to string for printf
6 years ago
DL6ER 33156071cd
Fix literal "choice" being passed to appendToListsFile()
6 years ago
Dan Schaper e8c2e26358
Override shellcheck with explanations.
6 years ago
Dan Schaper 61c67849d7
Support multiple distributions and release versions in find_IPv4_information().
6 years ago
Mark Drobnak 2cdbb34763
Merge pull request #2488 from pi-hole/feature/command_function
6 years ago
Mark Drobnak 1789a2db29
Merge pull request #2384 from pi-hole/feature/install-privacy-level
6 years ago
Dan Schaper c270b83341
Use printf instead of echo
6 years ago
Dan Schaper 02f0788033
Moved `command -v` calls to function.
6 years ago
Dan Schaper 9d2d45b473
Query php directly for major and minor version id strings.
6 years ago
Dan Schaper 0c892e6b3a
Addressed Stickler ShellCheck lints
6 years ago
Dan Schaper a0fc38d6a2
All terminal echo commands changed to printf.
6 years ago
bcambl e7e03e36de fix pihole user creation function
6 years ago
Adam Warner cc2f375b13
fix for #2450
6 years ago
Mark Drobnak a89615365e
Merge pull request #2410 from stuartskelton/norton_dns_EOL_2018_11_15
6 years ago
Stuart Skelton 3c36c22ca8 Remove Norton Connect Safe as its EOL 2018-11-15
6 years ago
Mark Drobnak 6f276ae4bb
Merge pull request #2299 from nullr0ute/net-tools
6 years ago
Mark Drobnak 3cea1bd423
Fix lighttpd v1.4.50 crashing on startup
6 years ago
bcambl c58e3acc78 add unsupported RPM distro warnings
6 years ago
bcambl 6f8e8e98bb update centos version check test
6 years ago
bcambl 24b4aabae9 allow installer to continue with additional rpm based distros
6 years ago
DL6ER 1813c25117
If config file was backed up: Print info message
6 years ago
Mcat12 5d0d7336ff
Echo with newline when setting privacy level
6 years ago
Mcat12 6a26a05dbf
Fix privacy level whiptail option format
6 years ago
Mcat12 4aafa8cf47
Set the FTL privacy level during install
6 years ago
DL6ER 28c6b1393f
Backup existing /etc/dnsmasq.conf if present and ensure that /etc/dnsmasq.conf contains only "conf-dir=/etc/dnsmasq.d"
6 years ago
Realtebo 0d1b3cee4f Enable FTL service before starting it
6 years ago
Mirko Tebaldi 476fecbcf5 Fixed typos as suggestes
6 years ago
Mirko Tebaldi 327b58fa03
Merge pull request #1 from pi-hole/development
6 years ago
DL6ER d3eea9404d
Merge pull request #2331 from pi-hole/tweak/improve_FTL_download_errormsg
6 years ago
Realtbo d9195970b7 Create adlist file while running unattended setup
6 years ago
Mark Drobnak ef8aaba014
Merge pull request #2320 from TronPaul/fix/no-tty
6 years ago
DL6ER f5c3dc5d9d
Improve download error message that is shown when downloading or verifying the binary failed
6 years ago
Mcat12 e01eea8ba8
Remove PowerPC from FTL binaries
6 years ago
Dan Schaper 5b628a4c77
Merge branch 'development' into release/v4.0
6 years ago
Mark McGuire 0081a7ca92 set noninteractive during unattended install
6 years ago
Dan Schaper 993beab3b7
Changed wording.
6 years ago
Dan Schaper 06875f2cc9
Merge branch 'release/v4.0' into fix/parse_pihole-FTL.conf
6 years ago
Dan Schaper 448fc7231c
Installed to `/etc/pihole` as PI_HOLE_CONFIG_DIR variable.
6 years ago
Dan Schaper d0d030bafc
Moved file creation to proper function. Included bash variables for file
6 years ago
Dan Schaper 833131e15f
Merge pull request #2315 from pi-hole/fix/regex-file-ownership
6 years ago
Dan Schaper fb2810557a
Allow web user group to access regex.list
6 years ago
Mcat12 57af0ba0a4
Use `install` to make the regex file
6 years ago
Dan Schaper 17c1e64f7e
Moved FTL configuration copy in to scripts copy function.
6 years ago
Dan Schaper af13ceac24
Touch file as ${USER} instead of copying template.
6 years ago
Mcat12 a55cc55338
Only `touch` the regex file if it doesn't already exist
6 years ago
Dan Schaper b2fb3fd35a
Merge pull request #2310 from pi-hole/feature/pihole-FTL.conf
6 years ago
Mcat12 1a8d5fb4a9
Allow PHP to edit the regex file if installed
6 years ago
Mcat12 c73b5456eb
Fix "which" error leaking
6 years ago
Mcat12 3d87398721
Fix `check_service_active` leaking error output
6 years ago
Mark Drobnak 47b56d6123
Fix wrong git command flag
6 years ago
Dan Schaper 512d2dd5f8
Source git repo and not /opt location.
6 years ago
Dan Schaper ad20d5ac1c
Remove -t SOURCE and DIRECTORY reversal flag on install.
6 years ago
Dan Schaper b79ff05e29
Move template files to own subdir. Include pihole-FTL.conf in templates.
6 years ago
Borats Nolan 32b50f8188 Change the word "folder" to "directory" since the pi-hole is intended to run on rpi with Linux on it.
6 years ago
Dan Schaper 32cf94fc74
Merge pull request #2297 from pi-hole/bugfix/locales
6 years ago
Adam Warner 9b1356ad01
Revert #2282
6 years ago
Peter Robinson 45521b377a Use ip route rather than old net-tools route in chronometer.sh
6 years ago
Dan Schaper 46a366635c
Fixed locale issue, do not parse for string.
6 years ago
Dan Schaper 1877128fc4
Removes empty comment lines in basic-install.sh
6 years ago
Mark Drobnak 9cd674b528
Merge pull request #2282 from RamSet/tweak/Port53
6 years ago