openhabian@mHAuto:~ $ sudo opemnhabian-config We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility. [sudo] password for openhabian: 2021-08-09_23:27:34_CEST [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/build-image/openhabian.conf + cp /etc/openhabian.conf /etc/openhabian.conf.BAK + read -r line + [[ # Origin: openhabian.conf =~ ^(#)?[a-zA-Z] ]] + echo '# Origin: openhabian.conf' + read -r line + [[ # =~ ^(#)?[a-zA-Z] ]] + echo '#' + 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 ]] + [[ mHAuto == *\ * ]] + echo hostname=mHAuto + 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 ]] + echo userpw=openhabian + eval userpw=openhabian ++ 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="" =~ ^(#)?[a-zA-Z] ]] + parsed='adminkeyurl=""' + [[ adminkeyurl="" =~ ^#[a-zA-Z] ]] ++ echo 'adminkeyurl=""' ++ 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/Berlin == *\ * ]] + echo timezone=Europe/Berlin + 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 ]] + [[ '' == *\ * ]] + echo wifi_ssid= + read -r line + [[ wifi_password="" =~ ^(#)?[a-zA-Z] ]] + parsed='wifi_password=""' + [[ wifi_password="" =~ ^#[a-zA-Z] ]] ++ echo 'wifi_password=""' ++ cut -d= -f1 + param=wifi_password + [[ -v wifi_password ]] + [[ '' == *\ * ]] + echo wifi_password= + 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 ]] + [[ main == *\ * ]] + echo clonebranch=main + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # initial openHAB configuration to import (URL or filename) =~ ^(#)?[a-zA-Z] ]] + echo '# initial openHAB configuration to import (URL or filename)' + read -r line + [[ # the file needs to be a zip archive created from openhab-cli backup =~ ^(#)?[a-zA-Z] ]] + echo '# the file needs to be a zip archive created from openhab-cli backup' + read -r line + [[ # initialconfig=/boot/initial.zip =~ ^(#)?[a-zA-Z] ]] + echo '# initialconfig=/boot/initial.zip' + 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, x86 =~ ^(#)?[a-zA-Z] ]] + echo '# pi4, pi4_8gb, cm4, pi400, pi3, cm3, pi3+, cm3+, pi2, pi1, cm1, pi0, pi0w, x86' + read -r line + [[ # hw= =~ ^(#)?[a-zA-Z] ]] + echo '# hw=' + 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= =~ ^(#)?[a-zA-Z] ]] + echo '# hwarch=' + 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= =~ ^(#)?[a-zA-Z] ]] + echo '# osrelease=' + 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", "Zulu11-32", or "Zulu11-64" =~ ^(#)?[a-zA-Z] ]] + echo '# Valid arguments: "Adopt11", "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 + [[ # 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 + [[ hotspotpw=openhabian =~ ^(#)?[a-zA-Z] ]] + parsed=hotspotpw=openhabian + [[ hotspotpw=openhabian =~ ^#[a-zA-Z] ]] ++ echo hotspotpw=openhabian ++ cut -d= -f1 + param=hotspotpw + [[ -v hotspotpw ]] + [[ openhabian == *\ * ]] + echo hotspotpw=openhabian + 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] ]] + echo '# 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=1024 =~ ^(#)?[a-zA-Z] ]] + parsed=storagecapacity=1024 + [[ storagecapacity=1024 =~ ^#[a-zA-Z] ]] ++ echo storagecapacity=1024 ++ cut -d= -f1 + param=storagecapacity + [[ -v storagecapacity ]] + [[ 1024 == *\ * ]] + echo storagecapacity=1024 + 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] ]] + echo '# adminmail=john.doe@foo.bar' + read -r line + [[ # relayuser=john.doe@foo.bar =~ ^(#)?[a-zA-Z] ]] + echo '# relayuser=john.doe@foo.bar' + read -r line + [[ # relaypass=secret =~ ^(#)?[a-zA-Z] ]] + echo '# relaypass=secret' + read -r line + [[ # smarthost=smtp.gmail.com =~ ^(#)?[a-zA-Z] ]] + echo '# smarthost=smtp.gmail.com' + read -r line + [[ # smartport=587 =~ ^(#)?[a-zA-Z] ]] + echo '# 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] ]] + echo '# preauthkey=tskey-xxxxxxxxxxxxxxxxx' + read -r line + [[ # tstags=tag:client =~ ^(#)?[a-zA-Z] ]] + echo '# tstags=tag:client' + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # Custom log files =~ ^(#)?[a-zA-Z] ]] + echo '# Custom log files' + read -r line + [[ # custom_log_files=("/var/log/foo.log" "/var/log/bar.log") =~ ^(#)?[a-zA-Z] ]] + echo '# custom_log_files=("/var/log/foo.log" "/var/log/bar.log")' + read -r line + [[ '' =~ ^(#)?[a-zA-Z] ]] + echo '' + read -r line + [[ # vim: filetype=sh =~ ^(#)?[a-zA-Z] ]] + echo '# vim: filetype=sh' + read -r line + set_cpu_speed + is_raspios + [[ '' == \r\a\s\p\i\o\s ]] + is_raspbian + [[ '' == \r\a\s\p\b\i\a\n ]] ++ 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" =~ Raspbian ]] + return 0 + return 0 + running_in_docker + [[ -n '' ]] + grep -qs 'docker\|lxc' /proc/1/cgroup + [[ -f /.dockerenv ]] + return 1 + echo 'GOVERNOR="ondemand"' + echo ondemand + 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-08-09_23:27:35_CEST [openHABian] Disabling IPv6... ' 2021-08-09_23:27:35_CEST [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=1918 + 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-08-09_23:27:35_CEST [openHABian] Loading configuration file '\''/etc/openhabian.conf'\''... ' 2021-08-09_23:27:35_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... ++ getent group openhabian + [[ ! -n openhabian:x:1000:openhabian,frontail ]] + id -u openhabian + source /etc/openhabian.conf ++ hostname=mHAuto ++ username=openhabian ++ userpw=openhabian ++ adminkeyurl= ++ timezone=Europe/Berlin ++ locales='en_US.UTF-8 de_DE.UTF-8' ++ system_default_locale=en_US.UTF-8 ++ wifi_ssid= ++ wifi_password= ++ wifi_country= ++ ipv6=disable ++ repositoryurl=https://github.com/openhab/openhabian ++ clonebranch=main ++ debugmode=maximum ++ java_opt=Zulu11-32 ++ zraminstall=enable ++ hotspot=enable ++ hotspotpw=openhabian ++ storageconfig=openhab-dir ++ storagedir=/storage ++ storagetapes=15 ++ storagecapacity=1024 + echo OK OK + openhabian_console_check + [[ -z 1 ]] ++ tput cols + [[ 80 -ge 120 ]] + local warningText + warningText='We detected that you use a console which is less than 120 columns wide. This tool is designed for a minimum of 120 columns and therefore some menus may not be presented correctly. Please increase the width of your console and rerun this tool.\n\nEither resize the window or consult the preferences of your console application.' + whiptail --title 'Compatibility warning' --msgbox 'We detected that you use a console which is less than 120 columns wide. This tool is designed for a minimum of 120 columns and therefore some menus may not be presented correctly. Please increase the width of your console and rerun this tool.\n\nEither resize the window or consult the preferences of your console application.' 13 80 Compatibility warning We detected that you use a console which is less than 120 columns wide. This tool is designed for a minimum of 120 columns and therefore some menus may not be presented correctly. Please increase the width of your console and rerun this tool. Either resize the window or consult the preferences of your console application. Compatibility warning We detected that you use a console which is less than 120 columns wide. This tool is designed for a minimum of 120 columns and therefore some menus may not be presented correctly. Please increase the width of your console and rerun this tool. Either resize the window or consult the preferences of your console application. + openhabian_update_check + [[ -z 1 ]] + local branch + local introText + local unsupportedHWText + local unsupportedOSText + branch=main + 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 commitDate ++ local shorthash +++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD ++ branch=main +++ git -C /opt/openhabian log --pretty=format:%aI -n 1 ++ commitDate=2021-08-04T15:31:50+02:00 +++ git -C /opt/openhabian log --pretty=format:%h -n 1 ++ shorthash=daa0885 ++ echo '[main]{2021-08-04T15:31:50+02:00}(daa0885)' + echo '2021-08-09_23:27:41_CEST [openHABian] openHABian configuration tool version: [main]{2021-08-04T15:31:50+02:00}(daa0885)' 2021-08-09_23:27:41_CEST [openHABian] openHABian configuration tool version: [main]{2021-08-04T15:31:50+02:00}(daa0885) ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-08-09_23:27:41_CEST [openHABian] Checking for changes in origin branch main... ' 2021-08-09_23:27:41_CEST [openHABian] Checking for changes in origin branch main... + is_pine64 ++ uname -r + [[ 5.10.52-v7+ =~ pine64-longsleep ]] + return 1 + is_jessie + [[ '' == \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 + [[ '' == \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 main ++ git -C /opt/openhabian rev-parse '@{u}' + [[ daa08853b5bca077c11191514c7fffb2a5a9c713 == daa08853b5bca077c11191514c7fffb2a5a9c713 ]] + echo OK OK + openhabian_announcements + [[ -z 1 ]] + local altReadNews + local newsFile + local readNews + altReadNews=/tmp/NEWS.md + newsFile=/opt/openhabian/NEWS.md + readNews=/opt/openhabian/docs/NEWS.md + cmp --silent /opt/openhabian/NEWS.md /opt/openhabian/docs/NEWS.md + cmp --silent /opt/openhabian/NEWS.md /tmp/NEWS.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/CHANGELOG.md` for you to lookup. ## Install openHAB function changed ## July 23, 2021 Menu option 03 "Install or upgrade to openHAB 3" has been changed to now actually do what it claims it will do: only install or upgrade to openHAB 3, it will not update an existing installation, please use menu option 2 for updates. Menu option 03 will also properly migrate an openHAB 2 environment to the current openHAB 3 "stable" version. ## Telldus Core service removed ## May 20, 2021 The Telldus Core service has now been removed from openHABian, and will no longer receive active support from the openHABian developers. Existing installations will be unaffected. The service was removed as it had become too difficult to maintain as a result of it requiring packages that are no longer provided by the Debian distribution used in openHABian. If you would like to install it on your own please see [this](https://community.openhab.org/t/89856) forum thread for some guidance. ## deCONZ / Phoscon companion app added ## May 10, 2021 There'\''s a new menu option to install the deCONZ software / Phoscon companion app to support the popular Dresden Elektronik Conbee and Raspbee ZigBee controllers. Note you will need to use the [deconz binding](https://www.openhab.org/addons/bindings/deconz/) and pair your devices using the Phoscon web interface running on port 8081.' 27 84 Hit tab to unselect buttons and scroll through the text using UP/DOWN or PGUP/PGDN. All announcements are stored in `/opt/openhabian/docs/CHANGELOG.md` for you to lookup. ## Install openHAB function changed ## July 23, 2021 Menu option 03 "Install or upgrade to openHAB 3" has been changed to now actually do what it claims it will do: only install or upgrade to openHAB 3, it will not update an existing installation, please use menu option 2 for updates. Menu option 03 will also properly migrate an openHAB 2 environment to the current openHAB 3 "stable" version. ## Telldus Core service removed ## May 20, 2021 The Telldus Core service has now been removed from openHABian, and will no longer receive active support from the openHABian developers. Existing installations will be unaffected. The service was removed as it had become too difficult to maintain as a result of it requiring packages that are no longer provided by the Debian distribution used in openHABian. If you would like to install it on your own please see [this](https://community.openhab.org/t/89856) forum thread for some guidance. ## deCONZ / Phoscon companion app added ## May 10, 2021 ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-08-09_23:27:48_CEST [openHABian] Switching to branch main... ' 2021-08-09_23:27:48_CEST [openHABian] Switching to branch main... + git -C /opt/openhabian checkout --quiet main + echo OK OK + fix_openhab_repo + local 'warningText=Due to bintray shutdown of services, there is an immediate need to change the openhab stable repository configuration.\nBintray repo in /etc/apt/sources.list.d/openhab.list needs to be replaced by Artifactory.\n\nDo you want this to be replaced now?' + grep -qs https://dl.bintray.com/openhab/apt-repo2 /etc/apt/sources.list.d/openhab.list + return + 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=main ++++ git -C /opt/openhabian log --pretty=format:%aI -n 1 +++ commitDate=2021-08-04T15:31:50+02:00 ++++ git -C /opt/openhabian log --pretty=format:%h -n 1 +++ shorthash=daa0885 +++ echo '[main]{2021-08-04T15:31:50+02:00}(daa0885)' ++ whiptail --title 'openHABian Configuration Tool [main]{2021-08-04T15:31:50+02:00}(daa0885)' --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' 'Update all installed software packages (incl. openHAB) to their latest version' '03 | Install openHAB' 'Install or upgrade to openHAB 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 ' openHABian Configuration Tool [main]{2021-08-04T15:31:50+02:00}(daa0885) 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 openHAB 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 00 | About openHABian Information about the openHABian project and this tool 01 | Select Branch Select the openHABian config tool version ("branch") to run 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 version02 | Upgrade System Update all installed software packages (incl. openHAB) to their latest version03 | Install openHAB Install or upgrade to openHAB 3 03 | Install openHAB Install or upgrade to openHAB 3 10 | Apply Improvements Apply the latest improvements to the basic openHABian setup 10 | Apply Improvements Apply the latest improvements to the basic openHABian setup 20 | Optional Components Choose from a set of optional software components + choice='20 | Optional Components' + RET=0 + '[' 0 -eq 1 ']' + '[' 0 -eq 255 ']' + [[ 20 | Optional Components == '' ]] + [[ 20 | Optional Components == \0\0* ]] + [[ 20 | Optional Components == \0\1* ]] + [[ 20 | Optional Components == \0\2* ]] + [[ 20 | Optional Components == \0\3* ]] + [[ 20 | Optional Components == \1\0* ]] + [[ 20 | Optional Components == \2\0* ]] +++ get_git_revision +++ local branch +++ local commitDate +++ local shorthash ++++ git -C /opt/openhabian rev-parse --abbrev-ref HEAD +++ branch=main ++++ git -C /opt/openhabian log --pretty=format:%aI -n 1 +++ commitDate=2021-08-04T15:31:50+02:00 ++++ git -C /opt/openhabian log --pretty=format:%h -n 1 +++ shorthash=daa0885 +++ echo '[main]{2021-08-04T15:31:50+02:00}(daa0885)' ++ whiptail --title 'openHABian Configuration Tool [main]{2021-08-04T15:31:50+02:00}(daa0885)' --menu 'Optional Components' 22 118 15 --cancel-button Back --ok-button Execute '21 | Log Viewer' 'openHAB Log Viewer webapp (frontail)' ' | Add log to viewer' 'Add a custom log to openHAB Log Viewer (frontail)' ' | Remove log from viewer' 'Remove a custom log from openHAB Log Viewer (frontail)' '22 | miflora-mqtt-daemon' 'Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon' '23 | Mosquitto' 'MQTT broker Eclipse Mosquitto' '24 | InfluxDB+Grafana' 'A powerful persistence and graphing solution' '25 | Node-RED' 'Flow-based programming for the Internet of Things' '26 | Homegear' 'Homematic specific, the CCU2 emulation software Homegear' '27 | knxd' 'KNX specific, the KNX router/gateway daemon knxd' '28 | 1wire' '1wire specific, owserver and related packages' '29 | deCONZ' 'deCONZ / Phoscon companion app for Conbee/Raspbee controller' '2A | FIND 3' 'Framework for Internal Navigation and Discovery' ' | Monitor Mode' 'Patch firmware to enable monitor mode (ALPHA/DANGEROUS)' '2B | Install HABApp' 'Python 3 integration and rule engine for openHAB' ' | Remove HABApp' 'Remove HABApp from this system' openHABian Configuration Tool [main]{2021-08-04T15:31:50+02:00}(daa0885) 21 | Log Viewer openHAB Log Viewer webapp (frontail) | Add log to viewer Add a custom log to openHAB Log Viewer (frontail) | Remove log from viewer Remove a custom log from openHAB Log Viewer (frontail) 22 | miflora-mqtt-daemon Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon 23 | Mosquitto MQTT broker Eclipse Mosquitto 24 | InfluxDB+Grafana A powerful persistence and graphing solution 25 | Node-RED Flow-based programming for the Internet of Things 26 | Homegear Homematic specific, the CCU2 emulation software Homegear 27 | knxd KNX specific, the KNX router/gateway daemon knxd 28 | 1wire 1wire specific, owserver and related packages 29 | deCONZ deCONZ / Phoscon companion app for Conbee/Raspbee controller 2A | FIND 3 Framework for Internal Navigation and Discovery | Monitor Mode Patch firmware to enable monitor mode (ALPHA/DANGEROUS) 2B | Install HABApp Python 3 integration and rule engine for openHAB | Remove HABApp Remove HABApp from this system 21 | Log Viewer openHAB Log Viewer webapp (frontail) | Add log to viewer Add a custom log to openHAB Log Viewer (frontail) | Add log to viewer Add a custom log to openHAB Log Viewer (frontail) | Remove log from viewer Remove a custom log from openHAB Log Viewer (frontail) | Remove log from viewer Remove a custom log from openHAB Log Viewer (frontail) 22 | miflora-mqtt-daemon Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon 22 | miflora-mqtt-daemon Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon 23 | Mosquitto MQTT broker Eclipse Mosquitto 23 | Mosquitto MQTT broker Eclipse Mosquitto 24 | InfluxDB+Grafana A powerful persistence and graphing solution 23 | Mosquitto MQTT broker Eclipse Mosquitto 24 | InfluxDB+Grafana A powerful persistence and graphing solution + choice2='23 | Mosquitto' + '[' 0 -eq 1 ']' + '[' 1 -eq 255 ']' + wait_for_apt_to_finish_update ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-08-09_23:28:46_CEST [openHABian] Updating Linux package information... ' 2021-08-09_23:28:46_CEST [openHABian] Updating Linux package information... + [[ -z 1918 ]] + tail --pid=1918 -f /dev/null + echo OK OK + case "$choice2" in + mqtt_setup + local mqttPasswd + local mqttUser=openhabian + local 'introText=The MQTT broker Eclipse Mosquitto will be installed from the official repository.\n\nIn addition, you can activate username:password authentication.' + local 'questionText=\nDo you want to secure your MQTT broker by a username:password combination? Every client will need to provide these upon connection.\n\nUsername will be '\''openhabian'\'', please provide a password (consisting of ASCII printable characters except space). Leave blank for no authentication, run setup again to change.' + local 'successText=Setup was successful.\n\nEclipse Mosquitto is now up and running in the background. You should be able to make a first connection.\n\nTo continue your integration in openHAB, please follow the instructions under: https://www.openhab.org/addons/bindings/mqtt/' ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-08-09_23:28:46_CEST [openHABian] Beginning the MQTT broker Eclipse Mosquitto installation... ' 2021-08-09_23:28:46_CEST [openHABian] Beginning the MQTT broker Eclipse Mosquitto installation... + [[ -n 1 ]] + whiptail --title 'MQTT installation' --yes-button Continue --no-button Cancel --yesno 'The MQTT broker Eclipse Mosquitto will be installed from the official repository.\n\nIn addition, you can activate username:password authentication.' 14 80 MQTT installation The MQTT broker Eclipse Mosquitto will be installed from the official repository. In addition, you can activate username:password authentication. + echo OK OK + dpkg -s mosquitto mosquitto-clients ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-08-09_23:28:47_CEST [openHABian] Installing MQTT... ' 2021-08-09_23:28:47_CEST [openHABian] Installing MQTT... + cond_redirect apt-get install --yes mosquitto mosquitto-clients + [[ -n '' ]] + echo -e '\n\033[90;01m$ apt-get install --yes mosquitto mosquitto-clients \033[39;49;00m' $ apt-get install --yes mosquitto mosquitto-clients + apt-get install --yes mosquitto mosquitto-clients Reading package lists... 0% Reading package lists... 100% Reading package lists... Done Building dependency tree... 0% Building dependency tree... 0% Building dependency tree... 50% Building dependency tree... 50% Building dependency tree Reading state information... 0% Reading state information... 0% Reading state information... Done The following additional packages will be installed: libev4 libmosquitto1 libuv1 libwebsockets8 Suggested packages: apparmor The following NEW packages will be installed: libev4 libmosquitto1 libuv1 libwebsockets8 mosquitto mosquitto-clients 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 485 kB of archives. After this operation, 1,055 kB of additional disk space will be used. 0% [Working] 0% [Working] Get:1 http://debian.bio.lmu.de/raspbian/raspbian buster/main armhf libev4 armhf 1:4.25-1 [34.5 kB] 2% [1 libev4 14.1 kB/34.5 kB 41%] [Waiting for headers] 9% [Waiting for headers] 9% [Working] Get:2 http://debian.bio.lmu.de/raspbian/raspbian buster/main armhf libmosquitto1 armhf 1.5.7-1+deb10u1 [57.6 kB] 11% [2 libmosquitto1 9,784 B/57.6 kB 17%] [Waiting for headers] 22% [Waiting for headers] 22% [Working] Get:3 http://debian.bio.lmu.de/raspbian/raspbian buster/main armhf libuv1 armhf 1.24.1-1+deb10u1 [96.9 kB] 23% [3 libuv1 9,783 B/96.9 kB 10%] [Waiting for headers] 41% [Waiting for headers] 41% [Working] Get:4 http://debian.bio.lmu.de/raspbian/raspbian buster/main armhf libwebsockets8 armhf 2.0.3-3 [85.6 kB] 43% [4 libwebsockets8 9,783 B/85.6 kB 11%] [Waiting for headers] 59% [Waiting for headers] 59% [Working] Get:5 http://debian.bio.lmu.de/raspbian/raspbian buster/main armhf mosquitto armhf 1.5.7-1+deb10u1 [143 kB] 60% [5 mosquitto 9,782 B/143 kB 7%] [Waiting for headers] 75% [5 mosquitto 98.3 kB/143 kB 69%] 86% [Working] Get:6 http://debian.bio.lmu.de/raspbian/raspbian buster/main armhf mosquitto-clients armhf 1.5.7-1+deb10u1 [66.8 kB] 88% [6 mosquitto-clients 12.7 kB/66.8 kB 19%] 100% [Working] Fetched 485 kB in 1s (425 kB/s) Selecting previously unselected package libev4:armhf. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 53445 files and directories currently installed.) Preparing to unpack .../0-libev4_1%3a4.25-1_armhf.deb ... Unpacking libev4:armhf (1:4.25-1) ... Selecting previously unselected package libmosquitto1:armhf. Preparing to unpack .../1-libmosquitto1_1.5.7-1+deb10u1_armhf.deb ... Unpacking libmosquitto1:armhf (1.5.7-1+deb10u1) ... Selecting previously unselected package libuv1:armhf. Preparing to unpack .../2-libuv1_1.24.1-1+deb10u1_armhf.deb ... Unpacking libuv1:armhf (1.24.1-1+deb10u1) ... Selecting previously unselected package libwebsockets8:armhf. Preparing to unpack .../3-libwebsockets8_2.0.3-3_armhf.deb ... Unpacking libwebsockets8:armhf (2.0.3-3) ... Selecting previously unselected package mosquitto. Preparing to unpack .../4-mosquitto_1.5.7-1+deb10u1_armhf.deb ... Unpacking mosquitto (1.5.7-1+deb10u1) ... Selecting previously unselected package mosquitto-clients. Preparing to unpack .../5-mosquitto-clients_1.5.7-1+deb10u1_armhf.deb ... Unpacking mosquitto-clients (1.5.7-1+deb10u1) ... Setting up libmosquitto1:armhf (1.5.7-1+deb10u1) ... Setting up libev4:armhf (1:4.25-1) ... Setting up mosquitto-clients (1.5.7-1+deb10u1) ... Setting up libuv1:armhf (1.24.1-1+deb10u1) ... Setting up libwebsockets8:armhf (2.0.3-3) ... Setting up mosquitto (1.5.7-1+deb10u1) ... Created symlink /etc/systemd/system/multi-user.target.wants/mosquitto.service /lib/systemd/system/mosquitto.service. Processing triggers for systemd (241-7~deb10u7+rpi1) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10+rpi1) ... Updating FireMotD available updates count ... + return 0 + echo OK OK + apt-get install --fix-broken --yes Reading package lists... 0% Reading package lists... 100% Reading package lists... Done Building dependency tree... 0% Building dependency tree... 0% Building dependency tree... 50% Building dependency tree... 50% Building dependency tree... 74% Building dependency tree Reading state information... 0% Reading state information... 0% Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-08-09_23:29:38_CEST [openHABian] Configuring MQTT... ' 2021-08-09_23:29:38_CEST [openHABian] Configuring MQTT... + [[ -n 1 ]] ++ whiptail --title 'MQTT Authentication' --passwordbox '\nDo you want to secure your MQTT broker by a username:password combination? Every client will need to provide these upon connection.\n\nUsername will be '\''openhabian'\'', please provide a password (consisting of ASCII printable characters except space). Leave blank for no authentication, run setup again to change.' 14 80 MQTT Authentication Do you want to secure your MQTT broker by a username:password combination? Every client will need to provide these upon connection. Username will be 'openhabian', please provide a password (consisting of ASCII printable characters except space). Leave blank for no authentication, run setup again to change. ____________________________________________________________________________ + mqttPasswd= + [[ -n '' ]] + cond_redirect sed -i -e /password_file/d /etc/mosquitto/mosquitto.conf + [[ -n '' ]] + echo -e '\n\033[90;01m$ sed -i -e /password_file/d /etc/mosquitto/mosquitto.conf \033[39;49;00m' $ sed -i -e /password_file/d /etc/mosquitto/mosquitto.conf + sed -i -e /password_file/d /etc/mosquitto/mosquitto.conf + return 0 + cond_redirect sed -i -e /allow_anonymous/d /etc/mosquitto/mosquitto.conf + [[ -n '' ]] + echo -e '\n\033[90;01m$ sed -i -e /allow_anonymous/d /etc/mosquitto/mosquitto.conf \033[39;49;00m' $ sed -i -e /allow_anonymous/d /etc/mosquitto/mosquitto.conf + sed -i -e /allow_anonymous/d /etc/mosquitto/mosquitto.conf + return 0 + cond_redirect rm -f /etc/mosquitto/passwd + [[ -n '' ]] + echo -e '\n\033[90;01m$ rm -f /etc/mosquitto/passwd \033[39;49;00m' $ rm -f /etc/mosquitto/passwd + rm -f /etc/mosquitto/passwd + return 0 + echo OK OK + grep -qs /log.bind /etc/ztab + zram_dependency install mosquitto + local zramServiceConfig=/etc/systemd/system/zram-config.service + local install=yes + [[ -f /etc/ztab ]] + [[ install == \i\n\s\t\a\l\l ]] + shift 1 + [[ mosquitto == \r\e\m\o\v\e ]] + for arg in "$@" + [[ yes == \y\e\s ]] + grep -qs mosquitto.service /etc/systemd/system/zram-config.service ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-08-09_23:29:42_CEST [openHABian] Adding mosquitto to zram service dependencies... ' 2021-08-09_23:29:42_CEST [openHABian] Adding mosquitto to zram service dependencies... + cond_redirect sed -i -e '/^Before/s/$/ mosquitto.service/' /etc/systemd/system/zram-config.service + [[ -n '' ]] + echo -e '\n\033[90;01m$ sed -i -e /^Before/s/$/ mosquitto.service/ /etc/systemd/system/zram-config.service \033[39;49;00m' $ sed -i -e /^Before/s/$/ mosquitto.service/ /etc/systemd/system/zram-config.service + sed -i -e '/^Before/s/$/ mosquitto.service/' /etc/systemd/system/zram-config.service + return 0 + echo OK OK + [[ yes == \n\o ]] + cond_redirect systemctl -q daemon-reload + [[ -s /etc/ztab ]] + mkdir -p /opt/zram/log.bind/mosquitto /var/log/mosquitto ++ timestamp ++ date +%F_%T_%Z + echo -n '2021-08-09_23:29:43_CEST [openHABian] Setting up MQTT service... ' 2021-08-09_23:29:43_CEST [openHABian] Setting up MQTT service... + cond_redirect usermod --append --groups mosquitto openhabian + [[ -n '' ]] + echo -e '\n\033[90;01m$ usermod --append --groups mosquitto openhabian \033[39;49;00m' $ usermod --append --groups mosquitto openhabian + usermod --append --groups mosquitto openhabian + return 0 + cond_redirect systemctl enable --now mosquitto.service + [[ -n '' ]] + echo -e '\n\033[90;01m$ systemctl enable --now mosquitto.service \033[39;49;00m' $ systemctl enable --now mosquitto.service + systemctl enable --now mosquitto.service Synchronizing state of mosquitto.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable mosquitto + return 0 + echo OK OK + [[ -n 1 ]] + whiptail --title 'Operation successful' --msgbox 'Setup was successful.\n\nEclipse Mosquitto is now up and running in the background. You should be able to make a first connection.\n\nTo continue your integration in openHAB, please follow the instructions under: https://www.openhab.org/addons/bindings/mqtt/' 13 80 Operation successful Setup was successful. Eclipse Mosquitto is now up and running in the background. You should be able to make a first connection. To continue your integration in openHAB, please follow the instructions under: https://www.openhab.org/addons/bindings/mqtt/ + '[' 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=main ++++ git -C /opt/openhabian log --pretty=format:%aI -n 1 +++ commitDate=2021-08-04T15:31:50+02:00 ++++ git -C /opt/openhabian log --pretty=format:%h -n 1 +++ shorthash=daa0885 +++ echo '[main]{2021-08-04T15:31:50+02:00}(daa0885)' ++ whiptail --title 'openHABian Configuration Tool [main]{2021-08-04T15:31:50+02:00}(daa0885)' --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' 'Update all installed software packages (incl. openHAB) to their latest version' '03 | Install openHAB' 'Install or upgrade to openHAB 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 ' openHABian Configuration Tool [main]{2021-08-04T15:31:50+02:00}(daa0885) 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 openHAB 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