add logging

This commit is contained in:
Mario Fetka 2024-07-06 15:25:59 +02:00
parent 874f3cd48c
commit 734b4d5a58

View File

@ -71,8 +71,8 @@ function msg_ok() {
mkdir -p $MSTEMPDIR &>/dev/null
msg_info "Installing needed base packages"
cmd_exec apt update | tee -a $INSTALLLOG &>/dev/null
cmd_exec apt install lsb-release dpkg-dev wget curl figlet lolcat unzip whiptail dialog -y | tee -a $INSTALLLOG &>/dev/null
cmd_exec apt update &>>$INSTALLLOG
cmd_exec apt install lsb-release dpkg-dev wget curl figlet lolcat unzip whiptail dialog -y &>>$INSTALLLOG
msg_ok "Installing needed base packages"
function header_info {
@ -138,7 +138,7 @@ msg_ok "adding bullseye repository to bookworm for python2"
fi
msg_info "Setting up ${APP} Repository"
apt install -y software-properties-common &>$INSTALLLOG
cmd_exec apt install -y software-properties-common &>$INSTALLLOG
if [ "${DIST}" = "Debian" ]; then
cmd_exec apt-add-repository -y contrib &>$INSTALLLOG
cmd_exec apt-add-repository -y non-free &>$INSTALLLOG