Script started on 2021-01-14 16:57:30+01:00 [TERM="xterm" TTY="/dev/pts/0" COLUMNS="146" LINES="44"] ]0;openhabian@openhab3: ~openhabian@openhab3:~ $ sudo openhabian-configexitsudo openhabian-config [sudo] password for openhabian: 2021-01-14_16:57:37_CET [openHABian] Checking for root privileges... OK + export UNATTENDED MIGRATION 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 ++ 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/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 /usr/local/bin/openhabian-config: line 84: update_openhabian_conf: command not found + config_ipv6 /usr/local/bin/openhabian-config: line 87: config_ipv6: command not found + [[ -n '' ]] + apt_update + PID_APT=17499 + 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-14_16:57:37_CET [openHABian] Loading configuration file '\''/etc/openhabian.conf'\''... ' 2021-01-14_16:57:37_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... ++ getent group openhabian + [[ ! -n openhabian:x:1000:openhabian,frontail ]] + id -u openhabian + source /etc/openhabian.conf ++ hostname=openHABianDevice ++ username=openhabian ++ userpw=openhabian ++ timezone=Europe/Berlin ++ locales='en_US.UTF-8 de_DE.UTF-8' ++ system_default_locale=en_US.UTF-8 ++ wifi_ssid= ++ wifi_psk= ++ wifi_country= ++ ipv6=enable ++ repositoryurl=https://github.com/openhab/openhabian ++ clonebranch=openHAB3 ++ debugmode=maximum ++ java_opt=Zulu11-32 ++ frontailtheme=light ++ hotspot=enable ++ adminmail=benny.dormaels@gmail.com + echo OK OK + openhabian_console_check /usr/local/bin/openhabian-config: line 127: openhabian_console_check: command not found + openhabian_update_check /usr/local/bin/openhabian-config: line 128: openhabian_update_check: command not found + [[ -n '' ]] + show_main_menu + local choice + local version +++ get_git_revision /opt/openhabian/functions/menu.bash: line 43: get_git_revision: command not found ++ whiptail --title 'Welcome to the openHABian Configuration Tool ' --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 ►' [?1049h[?25l(B                                              (B┌────────────────────────────────┤ Welcome to the openHABian Configuration Tool  ├─────────────────────────────────┐│ │ (B│ 00 | About openHABian Information about the openHABian project and this tool  │ (B│ │ (B│ 01 | Select Branch Select the openHABian config tool version ("branch") to run │ (B│ 02 | Upgrade System Upgrade all installed software packages (incl. openHAB) to their latest version │ (B│ 03 | Install openHAB Install or upgrade to openHAB release 3 │ (B│ │ (B│ 10 | Apply Improvements Apply the latest improvements to the basic openHABian setup ► │ (B│ 20 | Optional Components Choose from a set of optional software components ► │ (B│ 30 | System Settings A range of system and hardware related configuration steps ► │ (B│ 40 | openHAB Related Switch the installed openHAB version or apply tweaks ► │ (B│ 50 | Backup/Restore Manage backups and restore your system ► │ (B│ │ (B│ │ (B│ │ (B│ │ (B└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘  (B00 | 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 Upgrade all installed software packages (incl. openHAB) to their latest version02 | Upgrade System Upgrade all installed software packages (incl. openHAB) to their latest version03 | Install openHAB Install or upgrade to openHAB release 3 03 | Install openHAB Install or upgrade to openHAB release 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 ► 20 | Optional Components Choose from a set of optional software components ► 30 | System Settings A range of system and hardware related configuration steps ► 30 | System Settings A range of system and hardware related configuration steps ► 40 | openHAB Related Switch the installed openHAB version or apply tweaks ► 40 | openHAB Related Switch the installed openHAB version or apply tweaks ► 50 | Backup/Restore Manage backups and restore your system ► [?12l[?25h(B  [?1049l+ choice='50 | Backup/Restore' + RET=0 + '[' 0 -eq 1 ']' + '[' 0 -eq 255 ']' + [[ 50 | Backup/Restore == '' ]] + [[ 50 | Backup/Restore == \0\0* ]] + [[ 50 | Backup/Restore == \0\1* ]] + [[ 50 | Backup/Restore == \0\2* ]] + [[ 50 | Backup/Restore == \0\3* ]] + [[ 50 | Backup/Restore == \1\0* ]] + [[ 50 | Backup/Restore == \2\0* ]] + [[ 50 | Backup/Restore == \3\0* ]] + [[ 50 | Backup/Restore == \4\0* ]] + [[ 50 | Backup/Restore == \5\0* ]] +++ get_git_revision /opt/openhabian/functions/menu.bash: line 216: get_git_revision: command not found ++ whiptail --title 'Welcome to the openHABian Configuration Tool ' --menu Backup/Restore 14 116 7 --cancel-button Back --ok-button Execute '50 | Backup openHAB config' 'Backup the current active openHAB configuration' '51 | Restore an openHAB config' 'Restore a previous openHAB configuration from backup' '52 | Amanda System Backup' 'Set up Amanda to comprehensively backup your complete openHABian box' '53 | Setup SD mirroring' 'Setup mirroring of internal to external SD card' ' | Remove SD mirroring' 'Disable mirroring of SD cards' '54 | Raw copy SD' 'Raw copy internal SD to external disk / SD card' '55 | Sync SD' 'Rsync internal SD to external disk / SD card' [?1049h[?25l(B                                              (B┌────────────────────────────────┤ Welcome to the openHABian Configuration Tool  ├─────────────────────────────────┐│ │ (B│ 50 | Backup openHAB config Backup the current active openHAB configuration  │ (B│ 51 | Restore an openHAB config Restore a previous openHAB configuration from backup │ (B│ 52 | Amanda System Backup Set up Amanda to comprehensively backup your complete openHABian box │ (B│ 53 | Setup SD mirroring Setup mirroring of internal to external SD card │ (B│ | Remove SD mirroring Disable mirroring of SD cards │ (B│ 54 | Raw copy SD Raw copy internal SD to external disk / SD card │ (B│ 55 | Sync SD Rsync internal SD to external disk / SD card │ (B│ │ (B│ │ (B│ │ (B│ │ (B└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘  (B50 | Backup openHAB config Backup the current active openHAB configuration 51 | Restore an openHAB config Restore a previous openHAB configuration from backup 51 | Restore an openHAB config Restore a previous openHAB configuration from backup 52 | Amanda System Backup Set up Amanda to comprehensively backup your complete openHABian box52 | Amanda System Backup Set up Amanda to comprehensively backup your complete openHABian box53 | Setup SD mirroring Setup mirroring of internal to external SD card 53 | Setup SD mirroring Setup mirroring of internal to external SD card  | Remove SD mirroring Disable mirroring of SD cards  | Remove SD mirroring Disable mirroring of SD cards 54 | Raw copy SD Raw copy internal SD to external disk / SD card [?12l[?25h(B  [?1049l+ choice2='54 | Raw copy SD' + '[' 0 -eq 1 ']' + '[' 1 -eq 255 ']' + case "$choice2" in + mirror_SD raw + local src=/dev/mmcblk0 + local dest= + local start + local destPartsLargeEnough=true + local storageDir=/storage + local syncMount=/storage/syncmount + local dirty=no + local repartitionText + local 'dumpInfoText=For your information as the operator of this openHABian system:\nA timed background job to run semiannually has just created a full raw device copy of your RPI'\''s internal SD card.\nOnly partitions to contain openHABian (/boot and / partitions 1 & 2) were copied.' + local partUUID + [[ 1 -eq 1 ]] + [[ -n 1 ]] + select_blkdev '^sd' 'Setup SD mirroring' 'Select USB device to copy the internal SD card data to' + [[ -z 1 ]] + array=() + declare -a array + read -r id foo foo size foo foo foo ++ lsblk -i ++ grep -E '^sd' ++ tr -d '\\-' ++ tr -d '`\\|' + array+=("$id" "$size") + read -r id foo foo size foo foo foo + [[ 2 -eq 0 ]] + (( count=2 + 8 )) ++ whiptail --title 'Setup SD mirroring' --cancel-button Cancel --ok-button Select --menu '\nSelect USB device to copy the internal SD card data to' 10 76 0 sda 29.7G [?1049h[?25l(B                                              (B┌──────────────────────────┤ Setup SD mirroring ├──────────────────────────┐│ │ (B│ Select USB device to copy the internal SD card data to │ (B│ │ (B│ sda 29.7G │ (B│ │ (B│ │ (B│