add logging
This commit is contained in:
parent
b83d80ef90
commit
16905e5043
@ -76,7 +76,7 @@ cmd_exec apt install lsb-release dpkg-dev wget curl figlet lolcat unzip whiptail
|
|||||||
msg_ok "Installing needed base packages"
|
msg_ok "Installing needed base packages"
|
||||||
|
|
||||||
function header_info {
|
function header_info {
|
||||||
/usr/bin/env figlet -w 60 -c "Mystic BBS DbP Installer" | /usr/games/lolcat -f
|
cmd_exec /usr/bin/env figlet -w 60 -c "Mystic BBS DbP Installer" | /usr/games/lolcat -f
|
||||||
}
|
}
|
||||||
|
|
||||||
header_info
|
header_info
|
||||||
@ -138,29 +138,29 @@ msg_ok "adding bullseye repository to bookworm for python2"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Setting up ${APP} Repository"
|
msg_info "Setting up ${APP} Repository"
|
||||||
apt install -y software-properties-common &>/dev/null
|
apt install -y software-properties-common &>$INSTALLLOG
|
||||||
if [ "${DIST}" = "Debian" ]; then
|
if [ "${DIST}" = "Debian" ]; then
|
||||||
apt-add-repository -y contrib &>/dev/null
|
cmd_exec apt-add-repository -y contrib &>$INSTALLLOG
|
||||||
apt-add-repository -y non-free &>/dev/null
|
cmd_exec apt-add-repository -y non-free &>$INSTALLLOG
|
||||||
fi
|
fi
|
||||||
if [ "${DIST}" = "Ubuntu" ]; then
|
if [ "${DIST}" = "Ubuntu" ]; then
|
||||||
apt-add-repository -y universe &>/dev/null
|
cmd_exec apt-add-repository -y universe &>$INSTALLLOG
|
||||||
apt-add-repository -y restricted &>/dev/null
|
cmd_exec apt-add-repository -y restricted &>$INSTALLLOG
|
||||||
apt-add-repository -y multiverse &>/dev/null
|
cmd_exec apt-add-repository -y multiverse &>$INSTALLLOG
|
||||||
fi
|
fi
|
||||||
apt update &>/dev/null
|
cmd_exec apt update &>$INSTALLLOG
|
||||||
apt install -y curl wget gnupg unzip unrar &>/dev/null
|
cmd_exec apt install -y curl wget gnupg unzip unrar &>$INSTALLLOG
|
||||||
mkdir -p $MSTEMPDIR &>/dev/null
|
cmd_exec mkdir -p $MSTEMPDIR &>$INSTALLLOG
|
||||||
msg_ok "Setting up ${APP} Repository"
|
msg_ok "Setting up ${APP} Repository"
|
||||||
|
|
||||||
#==============================================================================================================
|
#==============================================================================================================
|
||||||
|
|
||||||
msg_info "Downloading ${APP} Mystic BBS Disconnected-by-Peer Installer Files"
|
msg_info "Downloading ${APP} Mystic BBS Disconnected-by-Peer Installer Files"
|
||||||
wget -N https://gitea.disconnected-by-peer.at/geos_one/mystic/archive/main.zip -O $MSTEMPDIR/dbp-main.zip &>/dev/null
|
cmd_exec wget -N https://gitea.disconnected-by-peer.at/geos_one/mystic/archive/main.zip -O $MSTEMPDIR/dbp-main.zip &>$INSTALLLOG
|
||||||
rm -rf $MSTEMPDIR/mystic &>/dev/null
|
cmd_exec rm -rf $MSTEMPDIR/mystic &>$INSTALLLOG
|
||||||
pushd $MSTEMPDIR &>/dev/null
|
cmd_exec pushd $MSTEMPDIR &>$INSTALLLOG
|
||||||
unzip dbp-main.zip &>/dev/null
|
cmd_exec unzip dbp-main.zip &>$INSTALLLOG
|
||||||
popd &>/dev/null
|
cmd_exec popd &>$INSTALLLOG
|
||||||
msg_ok "Downloading ${APP} Mystic BBS Disconnected-by-Peer Installer Files"
|
msg_ok "Downloading ${APP} Mystic BBS Disconnected-by-Peer Installer Files"
|
||||||
|
|
||||||
#==============================================================================================================
|
#==============================================================================================================
|
||||||
@ -272,7 +272,7 @@ echo "when you switched to the ${MYSTIC_DIR}" >> ${DBP_INFO}
|
|||||||
echo "" >> ${DBP_INFO}
|
echo "" >> ${DBP_INFO}
|
||||||
echo "==============================================================================================================" >> ${DBP_INFO}
|
echo "==============================================================================================================" >> ${DBP_INFO}
|
||||||
|
|
||||||
chown mystic:mystic -R ${MYSTIC_DIR} &>/dev/null
|
cmd_exec chown mystic:mystic -R ${MYSTIC_DIR} &>$INSTALLLOG
|
||||||
cat ${DBP_INFO}
|
cat ${DBP_INFO}
|
||||||
|
|
||||||
echo "These Infos are also been put into ${DBP_INFO}"
|
echo "These Infos are also been put into ${DBP_INFO}"
|
||||||
|
Loading…
Reference in New Issue
Block a user