Advertisement
Guest User

Untitled

a guest
Jul 28th, 2023
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.12 KB | None | 0 0
  1. $ systemctl stop openhab.service
  2. + systemctl stop openhab.service
  3. + return 0
  4. + [[ -d /opt/jdk ]]
  5. + openjdk_install_apt 17
  6. + dpkg -s openjdk-17-jre-headless
  7. + dpkg -s openjdk-17-jre-headless
  8. ++ timestamp
  9. ++ printf '%(%F_%T_%Z)T\n' -1
  10. + echo -n '2023-07-28_23:05:21_CEST [openHABian] Reconfiguring OpenJDK 17... '
  11. 2023-07-28_23:05:21_CEST [openHABian] Reconfiguring OpenJDK 17... + cond_redirect java_alternatives_reset
  12. + [[ -n '' ]]
  13. + echo -e '\n\033[90;01m$ java_alternatives_reset \033[39;49;00m'
  14.  
  15. $ java_alternatives_reset
  16. + java_alternatives_reset
  17. + local jdkBin
  18. ++ find '/opt/jdk/*/bin' ... -print -quit
  19. find: ‘/opt/jdk/*/bin’: No such file or directory
  20. find: ‘...’: No such file or directory
  21. + jdkBin=
  22. + cond_redirect find '' -maxdepth 1 -perm -111 -type f -exec bash -c 'update-alternatives --quiet --remove-all $(basename {})' ';'
  23. + [[ -n '' ]]
  24. + echo -e '\n\033[90;01m$ find -maxdepth 1 -perm -111 -type f -exec bash -c update-alternatives --quiet --remove-all $(basename {}) ; \033[39;49;00m'
  25.  
  26. $ find -maxdepth 1 -perm -111 -type f -exec bash -c update-alternatives --quiet --remove-all $(basename {}) ;
  27. + find '' -maxdepth 1 -perm -111 -type f -exec bash -c 'update-alternatives --quiet --remove-all $(basename {})' ';'
  28. find: ‘’: No such file or directory
  29. + return 1
  30. + return 1
  31. + cond_redirect dpkg-reconfigure openjdk-17-jre-headless
  32. + [[ -n '' ]]
  33. + echo -e '\n\033[90;01m$ dpkg-reconfigure openjdk-17-jre-headless \033[39;49;00m'
  34.  
  35. $ dpkg-reconfigure openjdk-17-jre-headless
  36. + dpkg-reconfigure openjdk-17-jre-headless
  37. /usr/sbin/dpkg-reconfigure: openjdk-17-jre-headless is broken or not fully installed
  38. + return 1
  39. + echo FAILED
  40. FAILED
  41. + return 1
  42. + openhab_is_installed
  43. + openhab2_is_installed
  44. ++ dpkg -s openhab2
  45. ++ grep Status
  46. ++ cut '-d ' -f2
  47. + [[ '' =~ ^(install|hold)$ ]]
  48. + return 1
  49. + openhab3_is_installed
  50. ++ dpkg -s openhab
  51. ++ grep -E '^Version'
  52. ++ cut -d ' ' -f2
  53. ++ cut -d . -f1
  54. + [[ 4 = 3 ]]
  55. + return 1
  56. + openhab4_is_installed
  57. ++ dpkg -s openhab
  58. ++ grep -E '^Version'
  59. ++ cut -d ' ' -f2
  60. ++ cut -d . -f1
  61. + [[ 4 = 4 ]]
  62. + return 0
  63. + return 0
  64. + cond_redirect systemctl restart openhab.service
  65. + [[ -n '' ]]
  66. + echo -e '\n\033[90;01m$ systemctl restart openhab.service \033[39;49;00m'
  67.  
  68. $ systemctl restart openhab.service
  69. + systemctl restart openhab.service
  70. + return 0
  71. + '[' 0 -ne 0 ']'
  72. + true
  73. + show_main_menu
  74. + local choice
  75. + local version
  76. +++ get_git_revision
  77. +++ local branch
  78. +++ local commitDate
  79. +++ local shorthash
  80. ++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
  81. +++ branch=openHAB3
  82. ++++ git -C /opt/openhabian log --pretty=format:%aI -n 1
  83. +++ commitDate=2023-07-26T18:57:53+02:00
  84. ++++ git -C /opt/openhabian log --pretty=format:%h -n 1
  85. +++ shorthash=a6869e2
  86. +++ echo '[openHAB3]{2023-07-26T18:57:53+02:00}(a6869e2)'
  87. ++ whiptail --title 'openHABian Configuration Tool — [openHAB3]{2023-07-26T18:57:53+02:00}(a6869e2)' --menu 'Setup Options' 24 118 16 --cancel-button Exit --ok-button Execute '00 | About openHABian' 'Information about the openHABian project and this tool' '' '' '01 | Select Branch' 'Select the openHABian config tool version ("branch") to run' '02 | Upgrade System' 'Update all installed software packages (incl. openHAB) to their latest version' '03 | Install openHAB' 'Install or upgrade to latest openHAB' '04 | Import config' 'Import an openHAB configuration from file or URL' '' '' '10 | Apply Improvements' 'Apply the latest improvements to the basic openHABian setup ►' '20 | Optional Components' 'Choose from a set of optional software components ►' '30 | System Settings' 'A range of system and hardware related configuration steps ►' '40 | openHAB Related' 'Switch the installed openHAB version or apply tweaks ►' '50 | Backup/Restore' 'Manage backups and restore your system ►'
  88. + choice=
  89. + RET=1
  90. + '[' 1 -eq 1 ']'
  91. + return 255
  92. + system_check_default_password
  93. + is_pi
  94. + is_pifour
  95. + [[ '' == \p\i\4 ]]
  96. + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
  97. + return 0
  98. + return 0
  99. + local algo
  100. + local defaultPassword
  101. + local defaultUser
  102. + local generatedPassword
  103. + local introText
  104. + local originalPassword
  105. + local salt
  106. + is_pi
  107. + is_pifour
  108. + [[ '' == \p\i\4 ]]
  109. + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
  110. + return 0
  111. + return 0
  112. + id -u pi
  113. + is_pi
  114. + is_pifour
  115. + [[ '' == \p\i\4 ]]
  116. + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]11[0-9a-fA-F]$' /proc/cpuinfo
  117. + return 0
  118. + return 0
  119. + defaultUser=openhabian
  120. + defaultPassword=openhabian
  121. ++ grep -w openhabian /etc/shadow
  122. ++ cut -d: -f2
  123. + originalPassword='$y$j9T$gv5kCr9n8EeOdT7kh4Heb1$7gGfuewpzRR.YaR0Y6EbGT5TPVAXRuQtuNdRe39xfG5'
  124. ++ echo '$y$j9T$gv5kCr9n8EeOdT7kh4Heb1$7gGfuewpzRR.YaR0Y6EbGT5TPVAXRuQtuNdRe39xfG5'
  125. ++ cut '-d$' -f2
  126. + algo=y
  127. + introText='The default password was detected on your system! That is a serious security concern. Bad guys or malicious programs in your subnet are able to gain root access!\n\nPlease set a strong password by typing the command '\''passwd openhabian'\''!'
  128. ++ echo '$y$j9T$gv5kCr9n8EeOdT7kh4Heb1$7gGfuewpzRR.YaR0Y6EbGT5TPVAXRuQtuNdRe39xfG5'
  129. ++ cut '-d$' -f3
  130. + salt=j9T
  131. + export algo defaultPassword salt
  132. ++ perl -le 'print crypt("$ENV{defaultPassword}","\$$ENV{algo}\$$ENV{salt}\$")'
  133. + generatedPassword='$y$j9T$$1DJdHt2WNxWqFR3sUxwYKh.KdyI9MF4X/A9710MJGjA'
  134. ++ timestamp
  135. ++ printf '%(%F_%T_%Z)T\n' -1
  136. + echo -n '2023-07-28_23:05:26_CEST [openHABian] Checking for default openHABian username:password combination... '
  137. 2023-07-28_23:05:26_CEST [openHABian] Checking for default openHABian username:password combination... ++ id -u openhabian
  138. + [[ -n 1000 ]]
  139. + [[ $y$j9T$$1DJdHt2WNxWqFR3sUxwYKh.KdyI9MF4X/A9710MJGjA == \$\y\$\j\9\T\$\g\v\5\k\C\r\9\n\8\E\e\O\d\T\7\k\h\4\H\e\b\1\$\7\g\G\f\u\e\w\p\z\R\R\.\Y\a\R\0\Y\6\E\b\G\T\5\T\P\V\A\X\R\u\Q\t\u\N\d\R\e\3\9\x\f\G\5 ]]
  140. + echo OK
  141. OK
  142. ++ timestamp
  143. ++ printf '%(%F_%T_%Z)T\n' -1
  144. + echo -e '2023-07-28_23:05:26_CEST [openHABian] We hope you got what you came for! See you again soon ;)'
  145. 2023-07-28_23:05:26_CEST [openHABian] We hope you got what you came for! See you again soon ;)
  146. + cd /home/openhabian
  147.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement