Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ systemctl stop openhab.service
- + systemctl stop openhab.service
- + return 0
- + [[ -d /opt/jdk ]]
- + openjdk_install_apt 17
- + dpkg -s openjdk-17-jre-headless
- + dpkg -s openjdk-17-jre-headless
- ++ timestamp
- ++ printf '%(%F_%T_%Z)T\n' -1
- + echo -n '2023-07-28_23:05:21_CEST [openHABian] Reconfiguring OpenJDK 17... '
- 2023-07-28_23:05:21_CEST [openHABian] Reconfiguring OpenJDK 17... + cond_redirect java_alternatives_reset
- + [[ -n '' ]]
- + echo -e '\n\033[90;01m$ java_alternatives_reset \033[39;49;00m'
- $ java_alternatives_reset
- + java_alternatives_reset
- + local jdkBin
- ++ find '/opt/jdk/*/bin' ... -print -quit
- find: ‘/opt/jdk/*/bin’: No such file or directory
- find: ‘...’: No such file or directory
- + jdkBin=
- + cond_redirect find '' -maxdepth 1 -perm -111 -type f -exec bash -c 'update-alternatives --quiet --remove-all $(basename {})' ';'
- + [[ -n '' ]]
- + 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'
- $ find -maxdepth 1 -perm -111 -type f -exec bash -c update-alternatives --quiet --remove-all $(basename {}) ;
- + find '' -maxdepth 1 -perm -111 -type f -exec bash -c 'update-alternatives --quiet --remove-all $(basename {})' ';'
- find: ‘’: No such file or directory
- + return 1
- + return 1
- + cond_redirect dpkg-reconfigure openjdk-17-jre-headless
- + [[ -n '' ]]
- + echo -e '\n\033[90;01m$ dpkg-reconfigure openjdk-17-jre-headless \033[39;49;00m'
- $ dpkg-reconfigure openjdk-17-jre-headless
- + dpkg-reconfigure openjdk-17-jre-headless
- /usr/sbin/dpkg-reconfigure: openjdk-17-jre-headless is broken or not fully installed
- + return 1
- + echo FAILED
- FAILED
- + return 1
- + openhab_is_installed
- + openhab2_is_installed
- ++ dpkg -s openhab2
- ++ grep Status
- ++ cut '-d ' -f2
- + [[ '' =~ ^(install|hold)$ ]]
- + return 1
- + openhab3_is_installed
- ++ dpkg -s openhab
- ++ grep -E '^Version'
- ++ cut -d ' ' -f2
- ++ cut -d . -f1
- + [[ 4 = 3 ]]
- + return 1
- + openhab4_is_installed
- ++ dpkg -s openhab
- ++ grep -E '^Version'
- ++ cut -d ' ' -f2
- ++ cut -d . -f1
- + [[ 4 = 4 ]]
- + return 0
- + return 0
- + cond_redirect systemctl restart openhab.service
- + [[ -n '' ]]
- + echo -e '\n\033[90;01m$ systemctl restart openhab.service \033[39;49;00m'
- $ systemctl restart openhab.service
- + systemctl restart openhab.service
- + return 0
- + '[' 0 -ne 0 ']'
- + true
- + show_main_menu
- + local choice
- + local version
- +++ get_git_revision
- +++ local branch
- +++ local commitDate
- +++ local shorthash
- ++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD
- +++ branch=openHAB3
- ++++ git -C /opt/openhabian log --pretty=format:%aI -n 1
- +++ commitDate=2023-07-26T18:57:53+02:00
- ++++ git -C /opt/openhabian log --pretty=format:%h -n 1
- +++ shorthash=a6869e2
- +++ echo '[openHAB3]{2023-07-26T18:57:53+02:00}(a6869e2)'
- ++ 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 ►'
- + choice=
- + RET=1
- + '[' 1 -eq 1 ']'
- + return 255
- + system_check_default_password
- + is_pi
- + 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_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_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=openhabian
- + defaultPassword=openhabian
- ++ grep -w openhabian /etc/shadow
- ++ cut -d: -f2
- + originalPassword='$y$j9T$gv5kCr9n8EeOdT7kh4Heb1$7gGfuewpzRR.YaR0Y6EbGT5TPVAXRuQtuNdRe39xfG5'
- ++ echo '$y$j9T$gv5kCr9n8EeOdT7kh4Heb1$7gGfuewpzRR.YaR0Y6EbGT5TPVAXRuQtuNdRe39xfG5'
- ++ cut '-d$' -f2
- + algo=y
- + 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'\''!'
- ++ echo '$y$j9T$gv5kCr9n8EeOdT7kh4Heb1$7gGfuewpzRR.YaR0Y6EbGT5TPVAXRuQtuNdRe39xfG5'
- ++ cut '-d$' -f3
- + salt=j9T
- + export algo defaultPassword salt
- ++ perl -le 'print crypt("$ENV{defaultPassword}","\$$ENV{algo}\$$ENV{salt}\$")'
- + generatedPassword='$y$j9T$$1DJdHt2WNxWqFR3sUxwYKh.KdyI9MF4X/A9710MJGjA'
- ++ timestamp
- ++ printf '%(%F_%T_%Z)T\n' -1
- + echo -n '2023-07-28_23:05:26_CEST [openHABian] Checking for default openHABian username:password combination... '
- 2023-07-28_23:05:26_CEST [openHABian] Checking for default openHABian username:password combination... ++ id -u openhabian
- + [[ -n 1000 ]]
- + [[ $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 ]]
- + echo OK
- OK
- ++ timestamp
- ++ printf '%(%F_%T_%Z)T\n' -1
- + echo -e '2023-07-28_23:05:26_CEST [openHABian] We hope you got what you came for! See you again soon ;)'
- 2023-07-28_23:05:26_CEST [openHABian] We hope you got what you came for! See you again soon ;)
- + cd /home/openhabian
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement