Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@pihole:/home/james# curl -sSL https://install.pi-hole.net | sudo bash -x
- + set -e
- + installLogLoc=/etc/pihole/install.log
- + setupVars=/etc/pihole/setupVars.conf
- + lighttpdConfig=/etc/lighttpd/lighttpd.conf
- + coltable=/opt/pihole/COL_TABLE
- + webInterfaceGitUrl=https://github.com/pi-hole/AdminLTE.git
- + webInterfaceDir=/var/www/html/admin
- + piholeGitUrl=https://github.com/pi-hole/pi-hole.git
- + PI_HOLE_LOCAL_REPO=/etc/.pihole
- + PI_HOLE_FILES=(chronometer list piholeDebug piholeLogFlush setupLCD update version gravity uninstall webpage)
- + PI_HOLE_INSTALL_DIR=/opt/pihole
- + PI_HOLE_CONFIG_DIR=/etc/pihole
- + useUpdateVars=false
- + adlistFile=/etc/pihole/adlists.list
- + regexFile=/etc/pihole/regex.list
- + IPV4_ADDRESS=
- + IPV6_ADDRESS=
- + QUERY_LOGGING=true
- + INSTALL_WEB_INTERFACE=true
- + '[' -z root ']'
- ++ stty size
- ++ echo 24 80
- + screen_size='24 80'
- ++ echo '24 80'
- ++ awk '{print $1}'
- + rows=24
- ++ echo '24 80'
- ++ awk '{print $2}'
- + columns=80
- + r=12
- + c=40
- + r=20
- + c=70
- + skipSpaceCheck=false
- + reconfigure=false
- + runUnattended=false
- + INSTALL_WEB_SERVER=true
- + [[ -f /opt/pihole/COL_TABLE ]]
- + COL_NC='\e[0m'
- + COL_LIGHT_GREEN='\e[1;32m'
- + COL_LIGHT_RED='\e[1;31m'
- + TICK='[\e[1;32m✓\e[0m]'
- + CROSS='[\e[1;31m✗\e[0m]'
- + INFO='[i]'
- + DONE='\e[1;32m done!\e[0m'
- + OVER='\r\033[K'
- + counter=0
- + [[ '' != true ]]
- + main
- + local 'str=Root user check'
- + echo ''
- + [[ 0 -eq 0 ]]
- + echo -e ' [\e[1;32m✓\e[0m] Root user check'
- [✓] Root user check
- + show_ascii_berry
- + echo -e '
- \e[1;32m.;;,.
- .ccccc:,.
- :cccclll:. ..,,
- :ccccclll. ;ooodc
- '\''ccll:;ll .oooodc
- .;cll.;;looo:.
- \e[1;31m.. '\'','\''.
- .'\'',,,,,,'\''.
- .'\'',,,,,,,,,,.
- .'\'',,,,,,,,,,,,....
- ....'\'''\'''\'',,,,,,,'\''.......
- ......... .... .........
- .......... ..........
- .......... ..........
- ......... .... .........
- ........,,,,,,,'\''......
- ....'\'',,,,,,,,,,,,.
- .'\'',,,,,,,,,'\''.
- .'\'',,,,,,'\''.
- ..'\'''\'''\''.\e[0m
- '
- .;;,.
- .ccccc:,.
- :cccclll:. ..,,
- :ccccclll. ;ooodc
- 'ccll:;ll .oooodc
- .;cll.;;looo:.
- .. ','.
- .',,,,,,'.
- .',,,,,,,,,,.
- .',,,,,,,,,,,,....
- ....''',,,,,,,'.......
- ......... .... .........
- .......... ..........
- .......... ..........
- ......... .... .........
- ........,,,,,,,'......
- ....',,,,,,,,,,,,.
- .',,,,,,,,,'.
- .',,,,,,'.
- ..'''.
- + make_temporary_log
- ++ mktemp /tmp/pihole_temp.XXXXXX
- + TEMPLOG=/tmp/pihole_temp.sIzoZy
- + exec
- + rm /tmp/pihole_temp.sIzoZy
- + distro_check
- + command -v apt-get
- + PKG_MANAGER=apt-get
- + UPDATE_PKG_CACHE='apt-get update'
- + PKG_INSTALL=(${PKG_MANAGER} --yes --no-install-recommends install)
- + PKG_COUNT='apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst || true'
- + apt-get install --dry-run iproute2
- + iproute_pkg=iproute2
- + command -v php
- + [[ '' != true ]]
- + apt-get install --dry-run php
- + phpVer=php
- + apt-get install --dry-run php-sqlite3
- + phpSqlite=sqlite3
- + INSTALLER_DEPS=(apt-utils dialog debconf dhcpcd5 git ${iproute_pkg} whiptail)
- + PIHOLE_DEPS=(bc cron curl dnsutils iputils-ping lsof netcat psmisc sudo unzip wget idn2 sqlite3 libcap2-bin dns-root-data resolvconf)
- + PIHOLE_WEB_DEPS=(lighttpd ${phpVer}-common ${phpVer}-cgi ${phpVer}-${phpSqlite})
- + LIGHTTPD_USER=www-data
- + LIGHTTPD_GROUP=www-data
- + LIGHTTPD_CFG=lighttpd.conf.debian
- + [[ -f /etc/pihole/setupVars.conf ]]
- + [[ false == true ]]
- + verifyFreeDiskSpace
- + local 'str=Disk space check'
- + local required_free_kilobytes=51200
- + local existing_free_kilobytes
- ++ df -Pk
- ++ awk '{print $4}'
- ++ grep -m1 '\/$'
- + existing_free_kilobytes=10494416
- + [[ 10494416 =~ ^([0-9])+$ ]]
- + [[ 10494416 -lt 51200 ]]
- + echo -e ' [\e[1;32m✓\e[0m] Disk space check'
- [✓] Disk space check
- + update_package_cache
- + local 'str=Update local cache of available packages'
- + echo ''
- + echo -ne ' [i] Update local cache of available packages...'
- [i] Update local cache of available packages...+ eval 'apt-get update'
- + echo -e '\r\033[K [\e[1;32m✓\e[0m] Update local cache of available packages'
- [✓] Update local cache of available packages
- + notify_package_updates_available
- + local 'str=Checking apt-get for upgraded packages'
- + echo -ne '\n [i] Checking apt-get for upgraded packages...'
- [i] Checking apt-get for upgraded packages...++ eval 'apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst || true'
- +++ apt-get -s -o Debug::NoLocking=true upgrade
- +++ grep -c '^Inst'
- +++ true
- + updatesToInstall=0
- ++ uname -r
- + [[ -d /lib/modules/4.15.0-30-generic ]]
- + [[ 0 -eq 0 ]]
- + echo -e '\r\033[K [\e[1;32m✓\e[0m] Checking apt-get for upgraded packages... up to date!'
- [✓] Checking apt-get for upgraded packages... up to date!
- + echo ''
- + install_dependent_packages 'INSTALLER_DEPS[@]'
- + counter=1
- + [[ 1 == 1 ]]
- + echo -e ' [i] Installer Dependency checks...'
- [i] Installer Dependency checks...
- + argArray1=("${!1}")
- + declare -a argArray1
- + declare -a installArray
- + command -v debconf-apt-progress
- + for i in "${argArray1[@]}"
- + echo -ne ' [i] Checking for apt-utils...'
- [i] Checking for apt-utils...+ dpkg-query -W '-f=${Status}' apt-utils
- + grep 'ok installed'
- + echo -e '\r\033[K [\e[1;32m✓\e[0m] Checking for apt-utils'
- [✓] Checking for apt-utils
- + for i in "${argArray1[@]}"
- + echo -ne ' [i] Checking for dialog...'
- [i] Checking for dialog...+ dpkg-query -W '-f=${Status}' dialog
- + grep 'ok installed'
- + echo -e '\r\033[K [i] Checking for dialog (will be installed)'
- [i] Checking for dialog (will be installed)
- + installArray+=("${i}")
- + for i in "${argArray1[@]}"
- + echo -ne ' [i] Checking for debconf...'
- [i] Checking for debconf...+ dpkg-query -W '-f=${Status}' debconf
- + grep 'ok installed'
- + echo -e '\r\033[K [\e[1;32m✓\e[0m] Checking for debconf'
- [✓] Checking for debconf
- + for i in "${argArray1[@]}"
- + echo -ne ' [i] Checking for dhcpcd5...'
- [i] Checking for dhcpcd5...+ dpkg-query -W '-f=${Status}' dhcpcd5
- + grep 'ok installed'
- + echo -e '\r\033[K [i] Checking for dhcpcd5 (will be installed)'
- [i] Checking for dhcpcd5 (will be installed)
- + installArray+=("${i}")
- + for i in "${argArray1[@]}"
- + echo -ne ' [i] Checking for git...'
- [i] Checking for git...+ dpkg-query -W '-f=${Status}' git
- + grep 'ok installed'
- + echo -e '\r\033[K [\e[1;32m✓\e[0m] Checking for git'
- [✓] Checking for git
- + for i in "${argArray1[@]}"
- + echo -ne ' [i] Checking for iproute2...'
- [i] Checking for iproute2...+ dpkg-query -W '-f=${Status}' iproute2
- + grep 'ok installed'
- + echo -e '\r\033[K [\e[1;32m✓\e[0m] Checking for iproute2'
- [✓] Checking for iproute2
- + for i in "${argArray1[@]}"
- + echo -ne ' [i] Checking for whiptail...'
- [i] Checking for whiptail...+ dpkg-query -W '-f=${Status}' whiptail
- + grep 'ok installed'
- + echo -e '\r\033[K [\e[1;32m✓\e[0m] Checking for whiptail'
- [✓] Checking for whiptail
- + [[ 2 -gt 0 ]]
- + test_dpkg_lock
- + i=0
- + fuser /var/lib/dpkg/lock
- + return 0
- + debconf-apt-progress -- apt-get --yes --no-install-recommends install dialog dhcpcd5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement