+ choice2='21 | Log Viewer' + '[' 0 -eq 1 ']' + '[' 1 -eq 255 ']' + wait_for_apt_to_finish_update ++ timestamp ++ date +%F_%T_%Z + echo -n '2020-11-19_19:38:21_GMT [openHABian] Updating Linux package information... ' 2020-11-19_19:38:21_GMT [openHABian] Updating Linux package information... + [[ -z 5170 ]] + tail --pid=5170 -f /dev/null + echo OK OK + case "$choice2" in + frontail_setup + local frontailBase + local frontailUser=frontail ++ command -v npm + [[ -x /usr/bin/npm ]] ++ node --version + [[ v12.19.1 != \v\1\2* ]] + is_armv6l + [[ '' == \a\r\m\v\6\l ]] + case "$(uname -m)" in ++ uname -m + return 1 ++ npm list -g ++ head -n 1 + frontailBase=/usr/lib/node_modules/frontail + id -u frontail + cond_redirect useradd --groups openhabian,openhab -s /bin/bash -d /var/tmp frontail + [[ -n '' ]] + echo -e '\n\033[90;01m$ useradd --groups openhabian,openhab -s /bin/bash -d /var/tmp frontail \033[39;49;00m' $ useradd --groups openhabian,openhab -s /bin/bash -d /var/tmp frontail + useradd --groups openhabian,openhab -s /bin/bash -d /var/tmp frontail useradd: group 'openhabian' does not exist + return 6 + echo 'FAILED (adduser)' FAILED (adduser) + return 1 + '[' 1 -ne 0 ']' + whiptail --msgbox 'There was an error or interruption during the execution of:\n "20 | Optional Components"\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or https://github.com/openhab/openhabian/blob/master/docs/openhabian-DEBUG.md how to proceed.' 14 80 + return 0 + true + show_main_menu + local choice + local version +++ get_git_revision +++ local branch +++ local latestTag +++ local revCount +++ local shorthash ++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD +++ branch=master ++++ git -C /opt/openhabian describe --tags --abbrev=0 +++ latestTag=v1.6 ++++ git -C /opt/openhabian log --oneline ++++ wc -l +++ revCount=949 ++++ git -C /opt/openhabian log --pretty=format:%h -n 1 +++ shorthash=4310b40 +++ echo '[master]v1.6-949(4310b40)' ++ whiptail --title 'Welcome to the openHABian Configuration Tool [master]v1.6-949(4310b40)' --menu 'Setup Options' 18 116 11 --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' 'Upgrade all installed software packages (incl. openHAB) to their latest version' '03 | openHAB Stable' 'Install or upgrade to the latest stable release of openHAB 2' '' '' '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 ►' + choice= + RET=1 + '[' 1 -eq 1 ']' + return 255 + system_check_default_password + is_pi + is_pizero + [[ '' == \p\i\0 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pizerow + [[ '' == \p\i\0\w ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[cC][0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pione + [[ '' == \p\i\1 ]] + grep -q '^Revision\s*:\s*00[0-9a-fA-F][0-9a-fA-F]$' /proc/cpuinfo + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[0-36][0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_cmone + [[ '' == \c\m\1 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]06[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pitwo + [[ '' == \p\i\2 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]04[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pithree + [[ '' == \p\i\3 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]08[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_cmthree + [[ '' == \c\m\3 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pithreeplus + [[ '' == \p\i\3\+ ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_cmthreeplus + [[ '' == \c\m\3\+ ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pifour + [[ '' == \p\i\4 ]] + 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 + return 0 + return 0 + local algo + local defaultPassword + local defaultUser + local generatedPassword + local introText + local originalPassword + local salt + is_pi + is_pizero + [[ '' == \p\i\0 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pizerow + [[ '' == \p\i\0\w ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[cC][0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pione + [[ '' == \p\i\1 ]] + grep -q '^Revision\s*:\s*00[0-9a-fA-F][0-9a-fA-F]$' /proc/cpuinfo + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[0-36][0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_cmone + [[ '' == \c\m\1 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]06[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pitwo + [[ '' == \p\i\2 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]04[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pithree + [[ '' == \p\i\3 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]08[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_cmthree + [[ '' == \c\m\3 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pithreeplus + [[ '' == \p\i\3\+ ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_cmthreeplus + [[ '' == \c\m\3\+ ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pifour + [[ '' == \p\i\4 ]] + 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 + return 0 + return 0 + id -u pi + is_pi + is_pizero + [[ '' == \p\i\0 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]09[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pizerow + [[ '' == \p\i\0\w ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[cC][0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pione + [[ '' == \p\i\1 ]] + grep -q '^Revision\s*:\s*00[0-9a-fA-F][0-9a-fA-F]$' /proc/cpuinfo + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[0-36][0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_cmone + [[ '' == \c\m\1 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]06[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pitwo + [[ '' == \p\i\2 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]04[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pithree + [[ '' == \p\i\3 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]08[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_cmthree + [[ '' == \c\m\3 ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[aA][0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pithreeplus + [[ '' == \p\i\3\+ ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]0[dDeE][0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_cmthreeplus + [[ '' == \c\m\3\+ ]] + grep -q '^Revision\s*:\s*[ 123][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]10[0-9a-fA-F]$' /proc/cpuinfo + return 1 + is_pifour + [[ '' == \p\i\4 ]] + 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 + return 0 + return 0 + defaultUser=test + defaultPassword=openhabian ++ grep -w test /etc/shadow ++ cut -d: -f2 + originalPassword='$6$LuQzT8SLIBD4Eq8w$Mh5tgUsvssjTqvMzAmgTuXKI6Omtm/6SHCicg4Kuxe8PLAlxUvtG7S1eMd3uD.ntVzk.c5U2fx/BARBJ5HZZC0' ++ echo '$6$LuQzT8SLIBD4Eq8w$Mh5tgUsvssjTqvMzAmgTuXKI6Omtm/6SHCicg4Kuxe8PLAlxUvtG7S1eMd3uD.ntVzk.c5U2fx/BARBJ5HZZC0' ++ cut '-d$' -f2 + algo=6 + 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 test'\''!' ++ echo '$6$LuQzT8SLIBD4Eq8w$Mh5tgUsvssjTqvMzAmgTuXKI6Omtm/6SHCicg4Kuxe8PLAlxUvtG7S1eMd3uD.ntVzk.c5U2fx/BARBJ5HZZC0' ++ cut '-d$' -f3 + salt=LuQzT8SLIBD4Eq8w + export algo defaultPassword salt ++ perl -le 'print crypt("$ENV{defaultPassword}","\$$ENV{algo}\$$ENV{salt}\$")' + generatedPassword='$6$LuQzT8SLIBD4Eq8w$M8PR1pS/lWJcLaTcBnz5WP2PUVCk1/debveQycCdxs6vlZyFtTQJXJB/sNE7kP7sTp.4ztx1vbyNOpDkyFjN11' ++ timestamp ++ date +%F_%T_%Z + echo -n '2020-11-19_19:39:07_GMT [openHABian] Checking for default openHABian username:password combination... ' 2020-11-19_19:39:07_GMT [openHABian] Checking for default openHABian username:password combination... ++ id -u test + [[ -n 1000 ]] + [[ $6$LuQzT8SLIBD4Eq8w$M8PR1pS/lWJcLaTcBnz5WP2PUVCk1/debveQycCdxs6vlZyFtTQJXJB/sNE7kP7sTp.4ztx1vbyNOpDkyFjN11 == \$\6\$\L\u\Q\z\T\8\S\L\I\B\D\4\E\q\8\w\$\M\h\5\t\g\U\s\v\s\s\j\T\q\v\M\z\A\m\g\T\u\X\K\I\6\O\m\t\m\/\6\S\H\C\i\c\g\4\K\u\x\e\8\P\L\A\l\x\U\v\t\G\7\S\1\e\M\d\3\u\D\.\n\t\V\z\k\.\c\5\U\2\f\x\/\B\A\R\B\J\5\H\Z\Z\C\0 ]] + echo OK OK ++ timestamp ++ date +%F_%T_%Z + echo -e '2020-11-19_19:39:07_GMT [openHABian] We hope you got what you came for! See you again soon ;)' 2020-11-19_19:39:07_GMT [openHABian] We hope you got what you came for! See you again soon ;) + cd /home/test