install tools first for later use

This commit is contained in:
Mario Fetka 2024-04-20 11:50:46 +02:00
parent 07adc720ff
commit 51334c1a87
2 changed files with 10 additions and 9 deletions

View File

@ -50,11 +50,6 @@ while true; do
done done
clear clear
function header_info {
/usr/bin/env figlet -w 60 -c "Mystic BBS DbP Installer" | /usr/games/lolcat -f
}
header_info
function msg_info() { function msg_info() {
local msg="$1" local msg="$1"
echo -ne " ${HOLD} ${YW}${msg}..." echo -ne " ${HOLD} ${YW}${msg}..."
@ -70,6 +65,12 @@ apt update &>/dev/null
apt install lsb-release dpkg-dev wget curl figlet lolcat unzip -y &>/dev/null apt install lsb-release dpkg-dev wget curl figlet lolcat unzip -y &>/dev/null
msg_ok "Installing needed base packages" msg_ok "Installing needed base packages"
function header_info {
/usr/bin/env figlet -w 60 -c "Mystic BBS DbP Installer" | /usr/games/lolcat -f
}
header_info
ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH) ARCH=$(dpkg-architecture -qDEB_HOST_MULTIARCH)
DIST=$(lsb_release -i -s) DIST=$(lsb_release -i -s)

View File

@ -1,6 +1,6 @@
echo -e "Plz set the install dir the same as bevor" echo -e "Plz set the install dir the same as bevor"
echo -e "${DGN}Install Mystic to: ${BGN}$MYSTIC_DIR${CL}" echo -e "${DGN}Install Mystic to: ${BGN}$MYSTIC_DIR${CL}"
#read -p "Press enter to continue" read -p "Press enter to continue"
msg_info "Starting ${APP} Installation" msg_info "Starting ${APP} Installation"
apt install -y unrar-free python3 python2 libpython2.7 zip rar &>/dev/null apt install -y unrar-free python3 python2 libpython2.7 zip rar &>/dev/null
@ -45,11 +45,11 @@ find ${MYSTIC_DIR} -name '*.ms' -type f -exec chmod 0664 {} \; &>/dev/null
msg_ok "Creating ${APP} und setting Permissions in ${MYSTIC_DIR}" msg_ok "Creating ${APP} und setting Permissions in ${MYSTIC_DIR}"
msg_info "Installing ${APP} Systemd Start/Stop Scripts and Service File" msg_info "Installing ${APP} Systemd Start/Stop Scripts and Service File"
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mis-start.sh > ${MYSTIC_DIR}/mis-start sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-start.sh > ${MYSTIC_DIR}/mis-start
chmod +x ${MYSTIC_DIR}/mis-start chmod +x ${MYSTIC_DIR}/mis-start
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mis-stop.sh > ${MYSTIC_DIR}/mis-stop sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis-stop.sh > ${MYSTIC_DIR}/mis-stop
chmod +x ${MYSTIC_DIR}/mis-stop chmod +x ${MYSTIC_DIR}/mis-stop
sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" mis.service > /etc/systemd/system/mystic.service sed -e "s!@MYSTIC_DIR@!${MYSTIC_DIR}!g" $MSTEMPDIR/mystic/mystic/mis.service > /etc/systemd/system/mystic.service
systemctl daemon-reload systemctl daemon-reload
msg_ok "Installing ${APP} Systemd Start/Stop Scripts and Service File" msg_ok "Installing ${APP} Systemd Start/Stop Scripts and Service File"