login as: openhabian openhabian@192.168.1.131's password: Linux openHAB-Pi4 5.4.79-v7l+ #1373 SMP Mon Nov 23 13:27:40 GMT 2020 armv7l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Jan 28 23:39:44 2021 from 192.168.1.38 ############################################################################### ############### openHAB-Pi4 ################################################# ############################################################################### ## Ip = 192.168.1.131 ## Release = Raspbian GNU/Linux 10 (buster) ## Kernel = Linux 5.4.79-v7l+ ## Platform = Raspberry Pi 4 Model B Rev 1.2 ## Uptime = 0 day(s). 0:9:25 ## CPU Usage = 0% avg over 4 cpu(s) (4 core(s) x 1 socket(s)) ## CPU Load = 1m: 0.00, 5m: 0.06, 15m: 0.04 ## Memory = Free: 3.46GB (92%), Used: 0.32GB (8%), Total: 3.78GB ## Swap = Free: 2.58GB (100%), Used: 0.00GB (0%), Total: 2.58GB ## Root = Free: 8.18GB (59%), Used: 5.52GB (41%), Total: 14.32GB ## Updates = 23 apt updates available. ## Sessions = 1 session(s) ## Processes = 130 running processes of 32768 maximum processes ############################################################################### _ _ _ ____ _ ___ ___ ___ ___ | | | | / \ | __ ) (_) ____ ___ / _ \ / _ \ / _ \ / _ \ | |_| | / _ \ | _ \ | | / _ \ / _ \ | (_) | (_) | __/| | | || _ | / ___ \ | |_) )| || (_) || | | | \___/| __/ \___/|_| |_||_| |_|/_/ \_\|____/ |_| \__|_||_| | | |_| 3.1.0-SNAPSHOT - Build #2154 Looking for a place to get started? Check out 'sudo openhabian-config' and the documentation at https://www.openhab.org/docs/installation/openhabian.html The openHAB dashboard can be reached at http://openHAB-Pi4:8080 To interact with openHAB on the command line, execute: 'openhab-cli --help' openhabian@openHAB-Pi4:~ $ sudo openhabian-config [sudo] password for openhabian: 2021-01-28_23:56:35_GMT [openHABian] Checking for root privileges... OK + export UNATTENDED SILENT DEBUGMAX INTERACTIVE + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/auth.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/backup.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/config.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/ext-storage.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/find.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/habapp.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/helpers.bash ++ ESC='\033[' ++ COL_DEF='\033[39;49;00m' ++ COL_RED='\033[31;01m' ++ COL_GREEN='\033[32;01m' ++ COL_YELLOW='\033[33;01m' ++ COL_BLUE='\033[34;01m' ++ COL_MAGENTA='\033[35;01m' ++ COL_CYAN='\033[36;01m' ++ COL_LGRAY='\033[37;01m' ++ COL_DGRAY='\033[90;01m' ++ export COL_DEF COL_RED COL_GREEN COL_YELLOW COL_BLUE COL_MAGENTA COL_CYAN COL_LGRAY COL_DGRAY + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/influxdb+grafana.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/java-jre.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/menu.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/nodejs-apps.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/openhab.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/openhabian.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/packages.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/system.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/vpn.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/wifi.bash + for shfile in "${BASEDIR:-/opt/openhabian}"/functions/*.bash + source /opt/openhabian/functions/zram.bash ++ pwd + OLDWD=/home/openhabian + cd /opt + update_openhabian_conf + local configFile=/etc/openhabian.conf + local referenceConfig=/opt/openhabian/openhabian.conf.dist + cp /etc/openhabian.conf /etc/openhabian.conf.BAK + read -r line + [[ # Modify your openHABian settings =~ ^(#)?[a-zA-Z] ]] + echo '# Modify your openHABian settings' + read -r line + [[ # Handle with care, only touch if you need to!! =~ ^(#)?[a-zA-Z] ]] + echo '# Handle with care, only touch if you need to!!' + read -r line + [[ # This file will only be used on unattended initial install. =~ ^(#)?[a-zA-Z] ]] + echo '# This file will only be used on unattended initial install.' + read -r line + [[ # If you want to change anything after unattended install completed, use menu in openhabian-config. =~ ^(#)?[a-zA-Z] ]] + echo '# If you want to change anything after unattended install completed, use menu in openhabian-config.' + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # Hostname to set this one to =~ ^(#)?[a-zA-Z] ]] + echo '# Hostname to set this one to' + read -r line + [[ hostname=openhabian =~ ^(#)?[a-zA-Z] ]] + parsed=hostname=openhabian + [[ hostname=openhabian =~ ^#[a-zA-Z] ]] ++ echo hostname=openhabian ++ cut -d= -f1 + param=hostname + [[ -v hostname ]] + [[ openHAB-Pi4 == *\ * ]] + echo hostname=openHAB-Pi4 + read -r line + [[ # if it exists, the default user (with its working environment) will be renamed to this username given here ... =~ ^(#)?[a-zA-Z] ]] + echo '# if it exists, the default user (with its working environment) will be renamed to this username given here ...' + read -r line + [[ username=openhabian =~ ^(#)?[a-zA-Z] ]] + parsed=username=openhabian + [[ username=openhabian =~ ^#[a-zA-Z] ]] ++ echo username=openhabian ++ cut -d= -f1 + param=username + [[ -v username ]] + [[ openhabian == *\ * ]] + echo username=openhabian + read -r line + [[ # and given this password. The password will be removed from this file after completion for security reasons. =~ ^(#)?[a-zA-Z] ]] + echo '# and given this password. The password will be removed from this file after completion for security reasons.' + read -r line + [[ userpw=openhabian =~ ^(#)?[a-zA-Z] ]] + parsed=userpw=openhabian + [[ userpw=openhabian =~ ^#[a-zA-Z] ]] ++ echo userpw=openhabian ++ cut -d= -f1 + param=userpw + [[ -v userpw ]] + [[ openhabian == *\ * ]] + echo userpw=openhabian + read -r line + [[ # set this to download a SSH key and authorize the owner to login as the admin user =~ ^(#)?[a-zA-Z] ]] + echo '# set this to download a SSH key and authorize the owner to login as the admin user' + read -r line + [[ #adminkeyurl=https://github.com/openhab/openhabian/adminkey.pub =~ ^(#)?[a-zA-Z] ]] + parsed='#adminkeyurl=https://github.com/openhab/openhabian/adminkey.pub' + [[ #adminkeyurl=https://github.com/openhab/openhabian/adminkey.pub =~ ^#[a-zA-Z] ]] + parsed=adminkeyurl=https://github.com/openhab/openhabian/adminkey.pub ++ echo adminkeyurl=https://github.com/openhab/openhabian/adminkey.pub ++ cut -d= -f1 + param=adminkeyurl + [[ -v adminkeyurl ]] + [[ '' == *\ * ]] + echo adminkeyurl= + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # Language and timezone. See Debian documentation for valid values. =~ ^(#)?[a-zA-Z] ]] + echo '# Language and timezone. See Debian documentation for valid values.' + read -r line + [[ timezone=Europe/Berlin =~ ^(#)?[a-zA-Z] ]] + parsed=timezone=Europe/Berlin + [[ timezone=Europe/Berlin =~ ^#[a-zA-Z] ]] ++ echo timezone=Europe/Berlin ++ cut -d= -f1 + param=timezone + [[ -v timezone ]] + [[ Europe/London == *\ * ]] + echo timezone=Europe/London + read -r line + [[ locales="en_US.UTF-8 de_DE.UTF-8" =~ ^(#)?[a-zA-Z] ]] + parsed='locales="en_US.UTF-8 de_DE.UTF-8"' + [[ locales="en_US.UTF-8 de_DE.UTF-8" =~ ^#[a-zA-Z] ]] ++ echo 'locales="en_US.UTF-8 de_DE.UTF-8"' ++ cut -d= -f1 + param=locales + [[ -v locales ]] + [[ en_US.UTF-8 de_DE.UTF-8 == *\ * ]] + echo 'locales="en_US.UTF-8 de_DE.UTF-8"' + read -r line + [[ system_default_locale="en_US.UTF-8" =~ ^(#)?[a-zA-Z] ]] + parsed='system_default_locale="en_US.UTF-8"' + [[ system_default_locale="en_US.UTF-8" =~ ^#[a-zA-Z] ]] ++ echo 'system_default_locale="en_US.UTF-8"' ++ cut -d= -f1 + param=system_default_locale + [[ -v system_default_locale ]] + [[ en_US.UTF-8 == *\ * ]] + echo system_default_locale=en_US.UTF-8 + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # WiFi settings. An ethernet connection is recommended. =~ ^(#)?[a-zA-Z] ]] + echo '# WiFi settings. An ethernet connection is recommended.' + read -r line + [[ # If you have a RPi4, RPi3, RPi0W or a supported external WiFi dongle, the WiFi =~ ^(#)?[a-zA-Z] ]] + echo '# If you have a RPi4, RPi3, RPi0W or a supported external WiFi dongle, the WiFi' + read -r line + [[ # interface can be setup and used for the initial installation. =~ ^(#)?[a-zA-Z] ]] + echo '# interface can be setup and used for the initial installation.' + read -r line + [[ # Fill in your SSID and password below, leave empty or put comment in front to =~ ^(#)?[a-zA-Z] ]] + echo '# Fill in your SSID and password below, leave empty or put comment in front to' + read -r line + [[ # have your WiFi remain unchanged/uninitialized. Make sure your Ethernet works. =~ ^(#)?[a-zA-Z] ]] + echo '# have your WiFi remain unchanged/uninitialized. Make sure your Ethernet works.' + read -r line + [[ # ATTENTION: you need to escape these special characters: $, `, ", \, (newline) =~ ^(#)?[a-zA-Z] ]] + echo '# ATTENTION: you need to escape these special characters: $, `, ", \, (newline)' + read -r line + [[ # 'Escaping' means to put an additional \ in front of that character =~ ^(#)?[a-zA-Z] ]] + echo '# '\''Escaping'\'' means to put an additional \ in front of that character' + read -r line + [[ wifi_ssid="" =~ ^(#)?[a-zA-Z] ]] + parsed='wifi_ssid=""' + [[ wifi_ssid="" =~ ^#[a-zA-Z] ]] ++ echo 'wifi_ssid=""' ++ cut -d= -f1 + param=wifi_ssid + [[ -v wifi_ssid ]] + [[ WHITEBEAR_NEW == *\ * ]] + echo wifi_ssid=WHITEBEAR_NEW + read -r line + [[ wifi_psk="" =~ ^(#)?[a-zA-Z] ]] + parsed='wifi_psk=""' + [[ wifi_psk="" =~ ^#[a-zA-Z] ]] ++ echo 'wifi_psk=""' ++ cut -d= -f1 + param=wifi_psk + [[ -v wifi_psk ]] + [[ Whitebear-is-Great!! == *\ * ]] + echo 'wifi_psk=Whitebear-is-Great!!' + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # Wi-Fi setting. Select a two-letter country code suitable for your location =~ ^(#)?[a-zA-Z] ]] + echo '# Wi-Fi setting. Select a two-letter country code suitable for your location' + read -r line + [[ # E.g. US (default), DE, AU, NZ... =~ ^(#)?[a-zA-Z] ]] + echo '# E.g. US (default), DE, AU, NZ...' + read -r line + [[ # You may infringe on local legislature otherwise =~ ^(#)?[a-zA-Z] ]] + echo '# You may infringe on local legislature otherwise' + read -r line + [[ # See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 or /usr/share/zoneinfo/zone.tab =~ ^(#)?[a-zA-Z] ]] + echo '# See https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 or /usr/share/zoneinfo/zone.tab' + read -r line + [[ wifi_country="" =~ ^(#)?[a-zA-Z] ]] + parsed='wifi_country=""' + [[ wifi_country="" =~ ^#[a-zA-Z] ]] ++ echo 'wifi_country=""' ++ cut -d= -f1 + param=wifi_country + [[ -v wifi_country ]] + [[ '' == *\ * ]] + echo wifi_country= + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # Eventually disable all IPv6 e.g. on installation problems =~ ^(#)?[a-zA-Z] ]] + echo '# Eventually disable all IPv6 e.g. on installation problems' + read -r line + [[ # values: "enable", "disable" =~ ^(#)?[a-zA-Z] ]] + echo '# values: "enable", "disable"' + read -r line + [[ ipv6=enable =~ ^(#)?[a-zA-Z] ]] + parsed=ipv6=enable + [[ ipv6=enable =~ ^#[a-zA-Z] ]] ++ echo ipv6=enable ++ cut -d= -f1 + param=ipv6 + [[ -v ipv6 ]] + [[ disable == *\ * ]] + echo ipv6=disable + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # repo and branch to clone from =~ ^(#)?[a-zA-Z] ]] + echo '# repo and branch to clone from' + read -r line + [[ repositoryurl=https://github.com/openhab/openhabian.git =~ ^(#)?[a-zA-Z] ]] + parsed=repositoryurl=https://github.com/openhab/openhabian.git + [[ repositoryurl=https://github.com/openhab/openhabian.git =~ ^#[a-zA-Z] ]] ++ echo repositoryurl=https://github.com/openhab/openhabian.git ++ cut -d= -f1 + param=repositoryurl + [[ -v repositoryurl ]] + [[ https://github.com/openhab/openhabian == *\ * ]] + echo repositoryurl=https://github.com/openhab/openhabian + read -r line + [[ clonebranch=openHAB3 =~ ^(#)?[a-zA-Z] ]] + parsed=clonebranch=openHAB3 + [[ clonebranch=openHAB3 =~ ^#[a-zA-Z] ]] ++ echo clonebranch=openHAB3 ++ cut -d= -f1 + param=clonebranch + [[ -v clonebranch ]] + [[ openHAB3 == *\ * ]] + echo clonebranch=openHAB3 + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # debug verbosity mode =~ ^(#)?[a-zA-Z] ]] + echo '# debug verbosity mode' + read -r line + [[ # off, on (verbose output in log) or maximum (show every command) =~ ^(#)?[a-zA-Z] ]] + echo '# off, on (verbose output in log) or maximum (show every command)' + read -r line + [[ debugmode=off =~ ^(#)?[a-zA-Z] ]] + parsed=debugmode=off + [[ debugmode=off =~ ^#[a-zA-Z] ]] ++ echo debugmode=off ++ cut -d= -f1 + param=debugmode + [[ -v debugmode ]] + [[ maximum == *\ * ]] + echo debugmode=maximum + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # fake hardware =~ ^(#)?[a-zA-Z] ]] + echo '# fake hardware' + read -r line + [[ # force treating your box as if it was a ... =~ ^(#)?[a-zA-Z] ]] + echo '# force treating your box as if it was a ...' + read -r line + [[ # pi4, pi4_8gb, cm4, pi400, pi3, cm3, pi3+, cm3+, pi2, pi1, cm1, pi0, pi0w =~ ^(#)?[a-zA-Z] ]] + echo '# pi4, pi4_8gb, cm4, pi400, pi3, cm3, pi3+, cm3+, pi2, pi1, cm1, pi0, pi0w' + read -r line + [[ #hw=pi4 =~ ^(#)?[a-zA-Z] ]] + parsed='#hw=pi4' + [[ #hw=pi4 =~ ^#[a-zA-Z] ]] + parsed=hw=pi4 ++ echo hw=pi4 ++ cut -d= -f1 + param=hw + [[ -v hw ]] + echo '#hw=pi4' + eval hw=pi4 ++ hw=pi4 + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # Hardware architecture =~ ^(#)?[a-zA-Z] ]] + echo '# Hardware architecture' + read -r line + [[ # x86_64, amd64, armv6l, armv7l, aarch64, arm64 =~ ^(#)?[a-zA-Z] ]] + echo '# x86_64, amd64, armv6l, armv7l, aarch64, arm64' + read -r line + [[ #hwarch=armv7l =~ ^(#)?[a-zA-Z] ]] + parsed='#hwarch=armv7l' + [[ #hwarch=armv7l =~ ^#[a-zA-Z] ]] + parsed=hwarch=armv7l ++ echo hwarch=armv7l ++ cut -d= -f1 + param=hwarch + [[ -v hwarch ]] + echo '#hwarch=armv7l' + eval hwarch=armv7l ++ hwarch=armv7l + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # OS distribution/release =~ ^(#)?[a-zA-Z] ]] + echo '# OS distribution/release' + read -r line + [[ # Valid arguments: raspios, raspbian, debian, ubuntu, stretch, buster, bionic, focal =~ ^(#)?[a-zA-Z] ]] + echo '# Valid arguments: raspios, raspbian, debian, ubuntu, stretch, buster, bionic, focal' + read -r line + [[ #osrelease=buster =~ ^(#)?[a-zA-Z] ]] + parsed='#osrelease=buster' + [[ #osrelease=buster =~ ^#[a-zA-Z] ]] + parsed=osrelease=buster ++ echo osrelease=buster ++ cut -d= -f1 + param=osrelease + [[ -v osrelease ]] + echo '#osrelease=buster' + eval osrelease=buster ++ osrelease=buster + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # Java architecture mode =~ ^(#)?[a-zA-Z] ]] + echo '# Java architecture mode' + read -r line + [[ # Valid arguments: "Adopt11", "Zulu8-32", "Zulu8-64", "Zulu11-32", or "Zulu11-64" =~ ^(#)?[a-zA-Z] ]] + echo '# Valid arguments: "Adopt11", "Zulu8-32", "Zulu8-64", "Zulu11-32", or "Zulu11-64"' + read -r line + [[ java_opt=Zulu11-32 =~ ^(#)?[a-zA-Z] ]] + parsed=java_opt=Zulu11-32 + [[ java_opt=Zulu11-32 =~ ^#[a-zA-Z] ]] ++ echo java_opt=Zulu11-32 ++ cut -d= -f1 + param=java_opt + [[ -v java_opt ]] + [[ Zulu11-32 == *\ * ]] + echo java_opt=Zulu11-32 + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # openHAB Log Viewer (frontail) theme =~ ^(#)?[a-zA-Z] ]] + echo '# openHAB Log Viewer (frontail) theme' + read -r line + [[ # Valid arguments: "light", "dark" =~ ^(#)?[a-zA-Z] ]] + echo '# Valid arguments: "light", "dark"' + read -r line + [[ frontailtheme=light =~ ^(#)?[a-zA-Z] ]] + parsed=frontailtheme=light + [[ frontailtheme=light =~ ^#[a-zA-Z] ]] ++ echo frontailtheme=light ++ cut -d= -f1 + param=frontailtheme + [[ -v frontailtheme ]] + [[ light == *\ * ]] + echo frontailtheme=light + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # install ZRAM per default, set to "disable" to skip installation =~ ^(#)?[a-zA-Z] ]] + echo '# install ZRAM per default, set to "disable" to skip installation' + read -r line + [[ zraminstall=enable =~ ^(#)?[a-zA-Z] ]] + parsed=zraminstall=enable + [[ zraminstall=enable =~ ^#[a-zA-Z] ]] ++ echo zraminstall=enable ++ cut -d= -f1 + param=zraminstall + [[ -v zraminstall ]] + [[ enable == *\ * ]] + echo zraminstall=enable + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # start comitup hotspot if internet is not reachable =~ ^(#)?[a-zA-Z] ]] + echo '# start comitup hotspot if internet is not reachable' + read -r line + [[ hotspot=enable =~ ^(#)?[a-zA-Z] ]] + parsed=hotspot=enable + [[ hotspot=enable =~ ^#[a-zA-Z] ]] ++ echo hotspot=enable ++ cut -d= -f1 + param=hotspot + [[ -v hotspot ]] + [[ enable == *\ * ]] + echo hotspot=enable + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # external SD card device to backup and mirror the internal SD card to =~ ^(#)?[a-zA-Z] ]] + echo '# external SD card device to backup and mirror the internal SD card to' + read -r line + [[ #backupdrive=/dev/sda =~ ^(#)?[a-zA-Z] ]] + parsed='#backupdrive=/dev/sda' + [[ #backupdrive=/dev/sda =~ ^#[a-zA-Z] ]] + parsed=backupdrive=/dev/sda ++ echo backupdrive=/dev/sda ++ cut -d= -f1 + param=backupdrive + [[ -v backupdrive ]] + echo '#backupdrive=/dev/sda' + eval backupdrive=/dev/sda ++ backupdrive=/dev/sda + read -r line + [[ storageconfig=openhab-dir =~ ^(#)?[a-zA-Z] ]] + parsed=storageconfig=openhab-dir + [[ storageconfig=openhab-dir =~ ^#[a-zA-Z] ]] ++ echo storageconfig=openhab-dir ++ cut -d= -f1 + param=storageconfig + [[ -v storageconfig ]] + [[ openhab-dir == *\ * ]] + echo storageconfig=openhab-dir + read -r line + [[ storagedir=/storage =~ ^(#)?[a-zA-Z] ]] + parsed=storagedir=/storage + [[ storagedir=/storage =~ ^#[a-zA-Z] ]] ++ echo storagedir=/storage ++ cut -d= -f1 + param=storagedir + [[ -v storagedir ]] + [[ /storage == *\ * ]] + echo storagedir=/storage + read -r line + [[ storagetapes=15 =~ ^(#)?[a-zA-Z] ]] + parsed=storagetapes=15 + [[ storagetapes=15 =~ ^#[a-zA-Z] ]] ++ echo storagetapes=15 ++ cut -d= -f1 + param=storagetapes + [[ -v storagetapes ]] + [[ 15 == *\ * ]] + echo storagetapes=15 + read -r line + [[ storagecapacity=10240 =~ ^(#)?[a-zA-Z] ]] + parsed=storagecapacity=10240 + [[ storagecapacity=10240 =~ ^#[a-zA-Z] ]] ++ echo storagecapacity=10240 ++ cut -d= -f1 + param=storagecapacity + [[ -v storagecapacity ]] + [[ 10240 == *\ * ]] + echo storagecapacity=10240 + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # mail relay settings =~ ^(#)?[a-zA-Z] ]] + echo '# mail relay settings' + read -r line + [[ #adminmail=john.doe@foo.bar =~ ^(#)?[a-zA-Z] ]] + parsed='#adminmail=john.doe@foo.bar' + [[ #adminmail=john.doe@foo.bar =~ ^#[a-zA-Z] ]] + parsed=adminmail=john.doe@foo.bar ++ echo adminmail=john.doe@foo.bar ++ cut -d= -f1 + param=adminmail + [[ -v adminmail ]] + echo '#adminmail=john.doe@foo.bar' + eval adminmail=john.doe@foo.bar ++ adminmail=john.doe@foo.bar + read -r line + [[ #relayuser=john.doe@foo.bar =~ ^(#)?[a-zA-Z] ]] + parsed='#relayuser=john.doe@foo.bar' + [[ #relayuser=john.doe@foo.bar =~ ^#[a-zA-Z] ]] + parsed=relayuser=john.doe@foo.bar ++ echo relayuser=john.doe@foo.bar ++ cut -d= -f1 + param=relayuser + [[ -v relayuser ]] + echo '#relayuser=john.doe@foo.bar' + eval relayuser=john.doe@foo.bar ++ relayuser=john.doe@foo.bar + read -r line + [[ #relaypass=secret =~ ^(#)?[a-zA-Z] ]] + parsed='#relaypass=secret' + [[ #relaypass=secret =~ ^#[a-zA-Z] ]] + parsed=relaypass=secret ++ echo relaypass=secret ++ cut -d= -f1 + param=relaypass + [[ -v relaypass ]] + echo '#relaypass=secret' + eval relaypass=secret ++ relaypass=secret + read -r line + [[ #smarthost=smtp.gmail.com =~ ^(#)?[a-zA-Z] ]] + parsed='#smarthost=smtp.gmail.com' + [[ #smarthost=smtp.gmail.com =~ ^#[a-zA-Z] ]] + parsed=smarthost=smtp.gmail.com ++ echo smarthost=smtp.gmail.com ++ cut -d= -f1 + param=smarthost + [[ -v smarthost ]] + echo '#smarthost=smtp.gmail.com' + eval smarthost=smtp.gmail.com ++ smarthost=smtp.gmail.com + read -r line + [[ #smartport=587 =~ ^(#)?[a-zA-Z] ]] + parsed='#smartport=587' + [[ #smartport=587 =~ ^#[a-zA-Z] ]] + parsed=smartport=587 ++ echo smartport=587 ++ cut -d= -f1 + param=smartport + [[ -v smartport ]] + echo '#smartport=587' + eval smartport=587 ++ smartport=587 + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # Tailscale VPN =~ ^(#)?[a-zA-Z] ]] + echo '# Tailscale VPN' + read -r line + [[ #preauthkey=tskey-xxxxxxxxxxxxxxxxx =~ ^(#)?[a-zA-Z] ]] + parsed='#preauthkey=tskey-xxxxxxxxxxxxxxxxx' + [[ #preauthkey=tskey-xxxxxxxxxxxxxxxxx =~ ^#[a-zA-Z] ]] + parsed=preauthkey=tskey-xxxxxxxxxxxxxxxxx ++ echo preauthkey=tskey-xxxxxxxxxxxxxxxxx ++ cut -d= -f1 + param=preauthkey + [[ -v preauthkey ]] + echo '#preauthkey=tskey-xxxxxxxxxxxxxxxxx' + eval preauthkey=tskey-xxxxxxxxxxxxxxxxx ++ preauthkey=tskey-xxxxxxxxxxxxxxxxx + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # vim: filetype=sh =~ ^(#)?[a-zA-Z] ]] + echo '# vim: filetype=sh' + read -r line + config_ipv6 + local aptConf=/etc/apt/apt.conf.d/S90force-ipv4 + local sysctlConf=/etc/sysctl.d/99-sysctl.conf + [[ disable == \d\i\s\a\b\l\e ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-01-28_23:56:36_GMT [openHABian] Disabling IPv6... ' 2021-01-28_23:56:36_GMT [openHABian] Disabling IPv6... + grep -qs '^[[:space:]]*# Disable all IPv6 functionality' /etc/sysctl.d/99-sysctl.conf + cp /opt/openhabian/includes/S90force-ipv4 /etc/apt/apt.conf.d/S90force-ipv4 + cond_redirect sysctl --load + [[ -n '' ]] + echo -e '\n\033[90;01m$ sysctl --load \033[39;49;00m' $ sysctl --load + sysctl --load net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 + return 0 + echo OK OK + [[ -n '' ]] + apt_update + PID_APT=1617 + apt-get update + whiptail_check ++ command -v whiptail + [[ -x /usr/bin/whiptail ]] + load_create_config + local 'questionText=\nWelcome to openHABian!\n\nPlease provide the name of your Linux user i.e. the account you normally log in with.\n\nTypical user names are '\''pi'\'' or '\''ubuntu'\''.' + local input + [[ -f /etc/openhabian.conf ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-01-28_23:56:36_GMT [openHABian] Loading configuration file '\''/etc/openhabian.conf'\''... ' 2021-01-28_23:56:36_GMT [openHABian] Loading configuration file '/etc/openhabian.conf'... ++ getent group openhabian + [[ ! -n openhabian:x:1000:openhabian,frontail ]] + id -u openhabian + source /etc/openhabian.conf ++ hostname=openHAB-Pi4 ++ username=openhabian ++ userpw=openhabian ++ adminkeyurl= ++ timezone=Europe/London ++ locales='en_US.UTF-8 de_DE.UTF-8' ++ system_default_locale=en_US.UTF-8 ++ wifi_ssid=WHITEBEAR_NEW ++ wifi_psk='Whitebear-is-Great!!' ++ wifi_country= ++ ipv6=disable ++ repositoryurl=https://github.com/openhab/openhabian ++ clonebranch=openHAB3 ++ debugmode=maximum ++ java_opt=Zulu11-32 ++ frontailtheme=light ++ zraminstall=enable ++ hotspot=enable ++ storageconfig=openhab-dir ++ storagedir=/storage ++ storagetapes=15 ++ storagecapacity=10240 + echo OK OK + openhabian_console_check + [[ -z 1 ]] ++ tput cols + [[ 160 -ge 120 ]] + return 0 + openhabian_update_check + [[ -z 1 ]] + local branch + local introText + local unsupportedHWText + local unsupportedOSText + branch=openHAB3 + introText='Additions, improvements or fixes were added to the openHABian configuration tool. Would you like to update now and benefit from them? The update will not automatically apply changes to your system.\n\nUpdating is recommended.' + unsupportedHWText='You are running on old hardware that is no longer officially supported.\nopenHABian may still work with this or not.\nWe recommend that you replace your hardware with a current SBC such as a RPi4/2GB.\nDo you really want to continue using openHABian on this system?' + unsupportedOSText='You are running an old Linux release that is no longer officially supported.\nWe recommend upgrading to the most current stable release of your distribution (or current Long Term Support version for distributions that offer LTS).\nDo you really want to continue using openHABian on this system?' ++ timestamp ++ date +%F_%T_%Z ++ get_git_revision ++ local branch ++ local latestTag ++ local revCount ++ local shorthash +++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD ++ branch=openHAB3 +++ git -C /opt/openhabian describe --tags --abbrev=0 ++ latestTag=patchday-20210119 +++ wc -l +++ git -C /opt/openhabian log --oneline ++ revCount=1147 +++ git -C /opt/openhabian log --pretty=format:%h -n 1 ++ shorthash=fbc2b15 ++ echo '[openHAB3]patchday-20210119-1147(fbc2b15)' + echo '2021-01-28_23:56:36_GMT [openHABian] openHABian configuration tool version: [openHAB3]patchday-20210119-1147(fbc2b15)' 2021-01-28_23:56:36_GMT [openHABian] openHABian configuration tool version: [openHAB3]patchday-20210119-1147(fbc2b15) ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-01-28_23:56:36_GMT [openHABian] Checking for changes in origin branch openHAB3... ' 2021-01-28_23:56:36_GMT [openHABian] Checking for changes in origin branch openHAB3... + is_pine64 ++ uname -r + [[ 5.4.79-v7l+ =~ pine64-longsleep ]] + return 1 + is_jessie + [[ buster == \j\e\s\s\i\e ]] ++ cat /etc/os-release + [[ PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ jessie ]] + return 1 + is_xenial + [[ buster == \x\e\n\i\a\l ]] ++ cat /etc/os-release + [[ PRETTY_NAME="Raspbian GNU/Linux 10 (buster)" NAME="Raspbian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" =~ xenial ]] + return 1 + git -C /opt/openhabian config user.email openhabian@openHABian + git -C /opt/openhabian config user.name openhabian + git -C /opt/openhabian fetch --quiet origin ++ git -C /opt/openhabian rev-parse openHAB3 ++ git -C /opt/openhabian rev-parse '@{u}' + [[ fbc2b151d2546b19a7fce84d1faa5c72bc276a73 == fbc2b151d2546b19a7fce84d1faa5c72bc276a73 ]] + echo OK OK + openhabian_announcements + [[ -z 1 ]] + local newsFile + local readNews + newsFile=/opt/openhabian/NEWS.md + readNews=/opt/openhabian/docs/LASTNEWS.md + cmp --silent /opt/openhabian/NEWS.md /opt/openhabian/docs/LASTNEWS.md ++ cat /opt/openhabian/NEWS.md + whiptail --title 'openHABian announcements' --yes-button 'Stop displaying' --no-button 'Keep displaying' --defaultno --scrolltext --yesno 'Hit tab to unselect buttons and scroll through the text using UP/DOWN or PGUP/PGDN. All announcements are stored in `/opt/openhabian/docs/NEWSLOG.md` for you to lookup. ## Future of master branch ## January 20, 2021 We will no longer make regular updates to the master branch as we migrate away from supporting openHAB2. As such in the coming months we will make bug fixes directly to the '\''stable'\'' branch for openHA2. With that said, please migrate off of the '\''master'\'' branch as it will be deleted soon. You can change branches at any time use menu option 01. ## openHAB 3 released ## December 21, 2020 In the darkest of times (midwinter for most of us), openHAB 3 gets released. See [documentation](docs/openhabian.md#on-openhab3) and [www.openhab.org](http://www.openhab.org) for details. Merry Christmas and a healthy New Year ! ## WiFi Hotspot ## November 14, 2020 Whenever your system has a WiFi interface that fails to initialize on installation or startup, openHABian will now launch a [WiFi hotspot](docs/openhabian.md#WiFi-Hotspot) you can use to connect your system to an existing WiFi network. ## Tailscale VPN network ## October 6, 2020 Tailscale is a management toolset to establish a WireGuard based VPN between multiple systems if you want to connect to openHAB(ian) instances outside your LAN over Internet. It'\''ll take care to detect and open ports when you and your peers are located behind firewalls. This makes use of the tailscale service. Don'\''t worry, for private use it'\''s free of charge.' 27 100 ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-01-28_23:56:41_GMT [openHABian] Switching to branch openHAB3... ' 2021-01-28_23:56:41_GMT [openHABian] Switching to branch openHAB3... + git -C /opt/openhabian checkout --quiet openHAB3 + echo OK OK + 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=openHAB3 ++++ git -C /opt/openhabian describe --tags --abbrev=0 +++ latestTag=patchday-20210119 ++++ git -C /opt/openhabian log --oneline ++++ wc -l +++ revCount=1147 ++++ git -C /opt/openhabian log --pretty=format:%h -n 1 +++ shorthash=fbc2b15 +++ echo '[openHAB3]patchday-20210119-1147(fbc2b15)' ++ whiptail --title 'Welcome to the openHABian Configuration Tool [openHAB3]patchday-20210119-1147(fbc2b15)' --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 | Install openHAB' 'Install or upgrade to openHAB release 3' '' '' '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='40 | openHAB Related' + RET=0 + '[' 0 -eq 1 ']' + '[' 0 -eq 255 ']' + [[ 40 | openHAB Related == '' ]] + [[ 40 | openHAB Related == \0\0* ]] + [[ 40 | openHAB Related == \0\1* ]] + [[ 40 | openHAB Related == \0\2* ]] + [[ 40 | openHAB Related == \0\3* ]] + [[ 40 | openHAB Related == \1\0* ]] + [[ 40 | openHAB Related == \2\0* ]] + [[ 40 | openHAB Related == \3\0* ]] + [[ 40 | openHAB Related == \4\0* ]] +++ get_git_revision +++ local branch +++ local latestTag +++ local revCount +++ local shorthash ++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD +++ branch=openHAB3 ++++ git -C /opt/openhabian describe --tags --abbrev=0 +++ latestTag=patchday-20210119 ++++ git -C /opt/openhabian log --oneline ++++ wc -l +++ revCount=1147 ++++ git -C /opt/openhabian log --pretty=format:%h -n 1 +++ shorthash=fbc2b15 +++ echo '[openHAB3]patchday-20210119-1147(fbc2b15)' ++ whiptail --title 'Welcome to the openHABian Configuration Tool [openHAB3]patchday-20210119-1147(fbc2b15)' --menu 'openHAB Related' 17 116 10 --cancel-button Back --ok-button Execute '41 | openHAB release' 'Install or switch to the latest openHAB release' ' | openHAB testing' 'Install or switch to the latest openHAB testing build' ' | openHAB snapshot' 'Install or switch to the latest openHAB SNAPSHOT build' '42 | Upgrade to openHAB 3' 'Upgrade OS environment to openHAB 3 release' ' | Downgrade to openHAB 2' 'Downgrade OS environment from openHAB 3 back to openHAB 2 stable (DANGEROUS)' '43 | Remote Console' 'Bind the openHAB SSH console to all external interfaces' '44 | Reverse Proxy' 'Setup Nginx with password authentication and/or HTTPS access' '45 | Zulu 11 OpenJDK 32-bit' 'Install Zulu 11 32-bit OpenJDK as primary Java provider' ' | Zulu 11 OpenJDK 64-bit' 'Install Zulu 11 64-bit OpenJDK as primary Java provider' ' | AdoptOpenJDK 11' 'Install AdoptOpenJDK 11 as primary Java provider' + choice2=' | openHAB snapshot' + '[' 0 -eq 1 ']' + '[' 1 -eq 255 ']' + wait_for_apt_to_finish_update ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-01-28_23:56:47_GMT [openHABian] Updating Linux package information... ' 2021-01-28_23:56:47_GMT [openHABian] Updating Linux package information... + [[ -z 1617 ]] + tail --pid=1617 -f /dev/null + echo OK OK ++ openhab3_is_installed +++ dpkg -s openhab +++ grep Status +++ cut '-d ' -f2 ++ [[ install == \i\n\s\t\a\l\l ]] ++ return 0 ++ echo openHAB3 + version=openHAB3 + case "$choice2" in + openhab_setup openHAB3 unstable + local introText + local successText + local repo + local openhabVersion + [[ openHAB3 == \o\p\e\n\H\A\B\3 ]] + ohPkgName=openhab + [[ unstable == \u\n\s\t\a\b\l\e ]] + introText='Proceed with caution!\n\nYou are about to switch over to the latest openHAB3 unstable snapshot build. The daily snapshot builds contain the latest features and improvements but might also suffer from bugs or incompatibilities. Please be sure to take a full openHAB configuration backup first!' + successText='The latest unstable snapshot build of openHAB3 is now running on your system.\n\nPlease test the correct behavior of your setup. You might need to adapt your configuration, if available. If you made changes to the files in '\''/var/lib/openhab'\'' they were replaced, but you can restore them from backup files next to the originals.\n\nIf you find any problems or bugs, please report them and state the snapshot version you are on. To stay up-to-date with improvements and bug fixes you should upgrade your packages (using menu option 02) regularly.' + repo='deb https://openhab.jfrog.io/artifactory/openhab-linuxpkg unstable main' + [[ unstable == \u\n\s\t\a\b\l\e ]] ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-01-28_23:56:47_GMT [openHABian] Beginning install of latest openHAB3 snapshot (unstable)... ' 2021-01-28_23:56:47_GMT [openHABian] Beginning install of latest openHAB3 snapshot (unstable)... + [[ -n 1 ]] + whiptail --title 'openHAB software change' --yes-button Continue --no-button Cancel --yesno 'Proceed with caution!\n\nYou are about to switch over to the latest openHAB3 unstable snapshot build. The daily snapshot builds contain the latest features and improvements but might also suffer from bugs or incompatibilities. Please be sure to take a full openHAB configuration backup first!' 15 80 + echo OK OK + export DEBIAN_FRONTEND=noninteractive + DEBIAN_FRONTEND=noninteractive + running_in_docker + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + [[ -z '' ]] + add_keys 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' + local repoKey ++ mktemp /tmp/openhabian.XXXXX + repoKey=/tmp/openhabian.zAJkv ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-01-28_23:56:48_GMT [openHABian] Adding required keys to apt... ' 2021-01-28_23:56:48_GMT [openHABian] Adding required keys to apt... + cond_redirect wget -qO /tmp/openhabian.zAJkv 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' + [[ -n '' ]] + echo -e '\n\033[90;01m$ wget -qO /tmp/openhabian.zAJkv https://bintray.com/user/downloadSubjectPublicKey?username=openhab \033[39;49;00m' $ wget -qO /tmp/openhabian.zAJkv https://bintray.com/user/downloadSubjectPublicKey?username=openhab + wget -qO /tmp/openhabian.zAJkv 'https://bintray.com/user/downloadSubjectPublicKey?username=openhab' + return 0 + cond_redirect apt-key add /tmp/openhabian.zAJkv + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-key add /tmp/openhabian.zAJkv \033[39;49;00m' $ apt-key add /tmp/openhabian.zAJkv + apt-key add /tmp/openhabian.zAJkv OK + return 0 + echo OK OK + rm -f /tmp/openhabian.zAJkv + rm -f /etc/apt/sources.list.d/openhab.list + echo 'deb https://openhab.jfrog.io/artifactory/openhab-linuxpkg unstable main' ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-01-28_23:56:49_GMT [openHABian] Installing selected openHAB3 version... ' 2021-01-28_23:56:49_GMT [openHABian] Installing selected openHAB3 version... + cond_redirect apt-get update + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-get update \033[39;49;00m' $ apt-get update + apt-get update Hit:1 http://davesteele.github.io/comitup/repo comitup InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease Hit:3 http://archive.raspberrypi.org/debian buster InRelease Hit:4 https://deb.nodesource.com/node_12.x buster InRelease Hit:5 https://openhab.jfrog.io/artifactory/openhab-linuxpkg unstable InRelease Reading package lists... Done + return 0 ++ apt-cache madison openhab ++ head -n 1 ++ cut '-d|' -f2 ++ xargs + openhabVersion=3.1.0~S2169-1 + cond_redirect apt-get install --allow-downgrades --yes --option Dpkg::Options::=--force-confnew openhab=3.1.0~S2169-1 openhab-addons=3.1.0~S2169-1 + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-get install --allow-downgrades --yes --option Dpkg::Options::=--force-confnew openhab=3.1.0~S2169-1 openhab-addons=3.1.0~S2169-1 \033[39;49;00m' $ apt-get install --allow-downgrades --yes --option Dpkg::Options::=--force-confnew openhab=3.1.0~S2169-1 openhab-addons=3.1.0~S2169-1 + apt-get install --allow-downgrades --yes --option Dpkg::Options::=--force-confnew openhab=3.1.0~S2169-1 openhab-addons=3.1.0~S2169-1 E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. + return 100 + echo FAILED FAILED + return 1 + '[' 1 -ne 0 ']' + whiptail --msgbox 'There was an error or interruption during the execution of:\n "40 | openHAB Related"\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=openHAB3 ++++ git -C /opt/openhabian describe --tags --abbrev=0 +++ latestTag=patchday-20210119 ++++ git -C /opt/openhabian log --oneline ++++ wc -l +++ revCount=1147 ++++ git -C /opt/openhabian log --pretty=format:%h -n 1 +++ shorthash=fbc2b15 +++ echo '[openHAB3]patchday-20210119-1147(fbc2b15)' ++ whiptail --title 'Welcome to the openHABian Configuration Tool [openHAB3]patchday-20210119-1147(fbc2b15)' --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 | Install openHAB' 'Install or upgrade to openHAB release 3' '' '' '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 + [[ pi4 == \p\i\4 ]] + return 0 + return 0 + local algo + local defaultPassword + local defaultUser + local generatedPassword + local introText + local originalPassword + local salt + is_pi + is_pifour + [[ pi4 == \p\i\4 ]] + return 0 + return 0 + id -u pi + is_pi + is_pifour + [[ pi4 == \p\i\4 ]] + return 0 + return 0 + defaultUser=openhabian + defaultPassword=openhabian ++ grep -w openhabian /etc/shadow ++ cut -d: -f2 + originalPassword='$6$r3OVoTxI0PD1L1HK$qRqP2GyPfKmW.mPdC5V1leb8Xil3sUBLPZ1GVpdlfH5AqMVdHdt6wRmcp0x.6rxHboQW.YI/NYxWRJ2hrRCYw1' ++ echo '$6$r3OVoTxI0PD1L1HK$qRqP2GyPfKmW.mPdC5V1leb8Xil3sUBLPZ1GVpdlfH5AqMVdHdt6wRmcp0x.6rxHboQW.YI/NYxWRJ2hrRCYw1' ++ 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 openhabian'\''!' ++ echo '$6$r3OVoTxI0PD1L1HK$qRqP2GyPfKmW.mPdC5V1leb8Xil3sUBLPZ1GVpdlfH5AqMVdHdt6wRmcp0x.6rxHboQW.YI/NYxWRJ2hrRCYw1' ++ cut '-d$' -f3 + salt=r3OVoTxI0PD1L1HK + export algo defaultPassword salt ++ perl -le 'print crypt("$ENV{defaultPassword}","\$$ENV{algo}\$$ENV{salt}\$")' + generatedPassword='$6$r3OVoTxI0PD1L1HK$/OYW4Er0t7Kq466SqtICHdyM6fSGiRG4E8Qcw5abCLzrLM3YuJDsP4YsQJHTR54gNfWzEe57pF1y/VWGCKChw1' ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-01-28_23:57:03_GMT [openHABian] Checking for default openHABian username:password combination... ' 2021-01-28_23:57:03_GMT [openHABian] Checking for default openHABian username:password combination... ++ id -u openhabian + [[ -n 1000 ]] + [[ $6$r3OVoTxI0PD1L1HK$/OYW4Er0t7Kq466SqtICHdyM6fSGiRG4E8Qcw5abCLzrLM3YuJDsP4YsQJHTR54gNfWzEe57pF1y/VWGCKChw1 == \$\6\$\r\3\O\V\o\T\x\I\0\P\D\1\L\1\H\K\$\q\R\q\P\2\G\y\P\f\K\m\W\.\m\P\d\C\5\V\1\l\e\b\8\X\i\l\3\s\U\B\L\P\Z\1\G\V\p\d\l\f\H\5\A\q\M\V\d\H\d\t\6\w\R\m\c\p\0\x\.\6\r\x\H\b\o\Q\W\.\Y\I\/\N\Y\x\W\R\J\2\h\r\R\C\Y\w\1 ]] + echo OK OK ++ timestamp ++ date +%F_%T_%Z + echo -e '2021-01-28_23:57:03_GMT [openHABian] We hope you got what you came for! See you again soon ;)' 2021-01-28_23:57:03_GMT [openHABian] We hope you got what you came for! See you again soon ;) + cd /home/openhabian