Advertisement
Guest User

Untitled

a guest
Aug 7th, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.39 KB | None | 0 0
  1. root@pihole:/home/james# curl -sSL https://install.pi-hole.net | sudo bash -x
  2. + set -e
  3. + installLogLoc=/etc/pihole/install.log
  4. + setupVars=/etc/pihole/setupVars.conf
  5. + lighttpdConfig=/etc/lighttpd/lighttpd.conf
  6. + coltable=/opt/pihole/COL_TABLE
  7. + webInterfaceGitUrl=https://github.com/pi-hole/AdminLTE.git
  8. + webInterfaceDir=/var/www/html/admin
  9. + piholeGitUrl=https://github.com/pi-hole/pi-hole.git
  10. + PI_HOLE_LOCAL_REPO=/etc/.pihole
  11. + PI_HOLE_FILES=(chronometer list piholeDebug piholeLogFlush setupLCD update version gravity uninstall webpage)
  12. + PI_HOLE_INSTALL_DIR=/opt/pihole
  13. + PI_HOLE_CONFIG_DIR=/etc/pihole
  14. + useUpdateVars=false
  15. + adlistFile=/etc/pihole/adlists.list
  16. + regexFile=/etc/pihole/regex.list
  17. + IPV4_ADDRESS=
  18. + IPV6_ADDRESS=
  19. + QUERY_LOGGING=true
  20. + INSTALL_WEB_INTERFACE=true
  21. + '[' -z root ']'
  22. ++ stty size
  23. ++ echo 24 80
  24. + screen_size='24 80'
  25. ++ echo '24 80'
  26. ++ awk '{print $1}'
  27. + rows=24
  28. ++ echo '24 80'
  29. ++ awk '{print $2}'
  30. + columns=80
  31. + r=12
  32. + c=40
  33. + r=20
  34. + c=70
  35. + skipSpaceCheck=false
  36. + reconfigure=false
  37. + runUnattended=false
  38. + INSTALL_WEB_SERVER=true
  39. + [[ -f /opt/pihole/COL_TABLE ]]
  40. + COL_NC='\e[0m'
  41. + COL_LIGHT_GREEN='\e[1;32m'
  42. + COL_LIGHT_RED='\e[1;31m'
  43. + TICK='[\e[1;32m✓\e[0m]'
  44. + CROSS='[\e[1;31m✗\e[0m]'
  45. + INFO='[i]'
  46. + DONE='\e[1;32m done!\e[0m'
  47. + OVER='\r\033[K'
  48. + counter=0
  49. + [[ '' != true ]]
  50. + main
  51. + local 'str=Root user check'
  52. + echo ''
  53.  
  54. + [[ 0 -eq 0 ]]
  55. + echo -e ' [\e[1;32m✓\e[0m] Root user check'
  56. [✓] Root user check
  57. + show_ascii_berry
  58. + echo -e '
  59. \e[1;32m.;;,.
  60. .ccccc:,.
  61. :cccclll:. ..,,
  62. :ccccclll. ;ooodc
  63. '\''ccll:;ll .oooodc
  64. .;cll.;;looo:.
  65. \e[1;31m.. '\'','\''.
  66. .'\'',,,,,,'\''.
  67. .'\'',,,,,,,,,,.
  68. .'\'',,,,,,,,,,,,....
  69. ....'\'''\'''\'',,,,,,,'\''.......
  70. ......... .... .........
  71. .......... ..........
  72. .......... ..........
  73. ......... .... .........
  74. ........,,,,,,,'\''......
  75. ....'\'',,,,,,,,,,,,.
  76. .'\'',,,,,,,,,'\''.
  77. .'\'',,,,,,'\''.
  78. ..'\'''\'''\''.\e[0m
  79. '
  80.  
  81. .;;,.
  82. .ccccc:,.
  83. :cccclll:. ..,,
  84. :ccccclll. ;ooodc
  85. 'ccll:;ll .oooodc
  86. .;cll.;;looo:.
  87. .. ','.
  88. .',,,,,,'.
  89. .',,,,,,,,,,.
  90. .',,,,,,,,,,,,....
  91. ....''',,,,,,,'.......
  92. ......... .... .........
  93. .......... ..........
  94. .......... ..........
  95. ......... .... .........
  96. ........,,,,,,,'......
  97. ....',,,,,,,,,,,,.
  98. .',,,,,,,,,'.
  99. .',,,,,,'.
  100. ..'''.
  101.  
  102. + make_temporary_log
  103. ++ mktemp /tmp/pihole_temp.XXXXXX
  104. + TEMPLOG=/tmp/pihole_temp.sIzoZy
  105. + exec
  106. + rm /tmp/pihole_temp.sIzoZy
  107. + distro_check
  108. + command -v apt-get
  109. + PKG_MANAGER=apt-get
  110. + UPDATE_PKG_CACHE='apt-get update'
  111. + PKG_INSTALL=(${PKG_MANAGER} --yes --no-install-recommends install)
  112. + PKG_COUNT='apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst || true'
  113. + apt-get install --dry-run iproute2
  114. + iproute_pkg=iproute2
  115. + command -v php
  116. + [[ '' != true ]]
  117. + apt-get install --dry-run php
  118. + phpVer=php
  119. + apt-get install --dry-run php-sqlite3
  120. + phpSqlite=sqlite3
  121. + INSTALLER_DEPS=(apt-utils dialog debconf dhcpcd5 git ${iproute_pkg} whiptail)
  122. + PIHOLE_DEPS=(bc cron curl dnsutils iputils-ping lsof netcat psmisc sudo unzip wget idn2 sqlite3 libcap2-bin dns-root-data resolvconf)
  123. + PIHOLE_WEB_DEPS=(lighttpd ${phpVer}-common ${phpVer}-cgi ${phpVer}-${phpSqlite})
  124. + LIGHTTPD_USER=www-data
  125. + LIGHTTPD_GROUP=www-data
  126. + LIGHTTPD_CFG=lighttpd.conf.debian
  127. + [[ -f /etc/pihole/setupVars.conf ]]
  128. + [[ false == true ]]
  129. + verifyFreeDiskSpace
  130. + local 'str=Disk space check'
  131. + local required_free_kilobytes=51200
  132. + local existing_free_kilobytes
  133. ++ df -Pk
  134. ++ awk '{print $4}'
  135. ++ grep -m1 '\/$'
  136. + existing_free_kilobytes=10494416
  137. + [[ 10494416 =~ ^([0-9])+$ ]]
  138. + [[ 10494416 -lt 51200 ]]
  139. + echo -e ' [\e[1;32m✓\e[0m] Disk space check'
  140. [✓] Disk space check
  141. + update_package_cache
  142. + local 'str=Update local cache of available packages'
  143. + echo ''
  144.  
  145. + echo -ne ' [i] Update local cache of available packages...'
  146. [i] Update local cache of available packages...+ eval 'apt-get update'
  147. + echo -e '\r\033[K [\e[1;32m✓\e[0m] Update local cache of available packages'
  148. [✓] Update local cache of available packages
  149. + notify_package_updates_available
  150. + local 'str=Checking apt-get for upgraded packages'
  151. + echo -ne '\n [i] Checking apt-get for upgraded packages...'
  152.  
  153. [i] Checking apt-get for upgraded packages...++ eval 'apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst || true'
  154. +++ apt-get -s -o Debug::NoLocking=true upgrade
  155. +++ grep -c '^Inst'
  156. +++ true
  157. + updatesToInstall=0
  158. ++ uname -r
  159. + [[ -d /lib/modules/4.15.0-30-generic ]]
  160. + [[ 0 -eq 0 ]]
  161. + echo -e '\r\033[K [\e[1;32m✓\e[0m] Checking apt-get for upgraded packages... up to date!'
  162. [✓] Checking apt-get for upgraded packages... up to date!
  163. + echo ''
  164.  
  165. + install_dependent_packages 'INSTALLER_DEPS[@]'
  166. + counter=1
  167. + [[ 1 == 1 ]]
  168. + echo -e ' [i] Installer Dependency checks...'
  169. [i] Installer Dependency checks...
  170. + argArray1=("${!1}")
  171. + declare -a argArray1
  172. + declare -a installArray
  173. + command -v debconf-apt-progress
  174. + for i in "${argArray1[@]}"
  175. + echo -ne ' [i] Checking for apt-utils...'
  176. [i] Checking for apt-utils...+ dpkg-query -W '-f=${Status}' apt-utils
  177. + grep 'ok installed'
  178. + echo -e '\r\033[K [\e[1;32m✓\e[0m] Checking for apt-utils'
  179. [✓] Checking for apt-utils
  180. + for i in "${argArray1[@]}"
  181. + echo -ne ' [i] Checking for dialog...'
  182. [i] Checking for dialog...+ dpkg-query -W '-f=${Status}' dialog
  183. + grep 'ok installed'
  184. + echo -e '\r\033[K [i] Checking for dialog (will be installed)'
  185. [i] Checking for dialog (will be installed)
  186. + installArray+=("${i}")
  187. + for i in "${argArray1[@]}"
  188. + echo -ne ' [i] Checking for debconf...'
  189. [i] Checking for debconf...+ dpkg-query -W '-f=${Status}' debconf
  190. + grep 'ok installed'
  191. + echo -e '\r\033[K [\e[1;32m✓\e[0m] Checking for debconf'
  192. [✓] Checking for debconf
  193. + for i in "${argArray1[@]}"
  194. + echo -ne ' [i] Checking for dhcpcd5...'
  195. [i] Checking for dhcpcd5...+ dpkg-query -W '-f=${Status}' dhcpcd5
  196. + grep 'ok installed'
  197. + echo -e '\r\033[K [i] Checking for dhcpcd5 (will be installed)'
  198. [i] Checking for dhcpcd5 (will be installed)
  199. + installArray+=("${i}")
  200. + for i in "${argArray1[@]}"
  201. + echo -ne ' [i] Checking for git...'
  202. [i] Checking for git...+ dpkg-query -W '-f=${Status}' git
  203. + grep 'ok installed'
  204. + echo -e '\r\033[K [\e[1;32m✓\e[0m] Checking for git'
  205. [✓] Checking for git
  206. + for i in "${argArray1[@]}"
  207. + echo -ne ' [i] Checking for iproute2...'
  208. [i] Checking for iproute2...+ dpkg-query -W '-f=${Status}' iproute2
  209. + grep 'ok installed'
  210. + echo -e '\r\033[K [\e[1;32m✓\e[0m] Checking for iproute2'
  211. [✓] Checking for iproute2
  212. + for i in "${argArray1[@]}"
  213. + echo -ne ' [i] Checking for whiptail...'
  214. [i] Checking for whiptail...+ dpkg-query -W '-f=${Status}' whiptail
  215. + grep 'ok installed'
  216. + echo -e '\r\033[K [\e[1;32m✓\e[0m] Checking for whiptail'
  217. [✓] Checking for whiptail
  218. + [[ 2 -gt 0 ]]
  219. + test_dpkg_lock
  220. + i=0
  221. + fuser /var/lib/dpkg/lock
  222. + return 0
  223. + debconf-apt-progress -- apt-get --yes --no-install-recommends install dialog dhcpcd5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement