From 51334c1a87e40c02e6076e8f9683898660ca0bd3 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sat, 20 Apr 2024 11:50:46 +0200 Subject: [PATCH] install tools first for later use --- install-next.sh | 11 ++++++----- mystic/install-v1.sh | 8 ++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/install-next.sh b/install-next.sh index a0ed0ac..504571b 100644 --- a/install-next.sh +++ b/install-next.sh @@ -50,11 +50,6 @@ while true; do done clear -function header_info { -/usr/bin/env figlet -w 60 -c "Mystic BBS DbP Installer" | /usr/games/lolcat -f -} - -header_info function msg_info() { local msg="$1" 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 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) DIST=$(lsb_release -i -s) diff --git a/mystic/install-v1.sh b/mystic/install-v1.sh index 78e06bb..36fb52d 100644 --- a/mystic/install-v1.sh +++ b/mystic/install-v1.sh @@ -1,6 +1,6 @@ echo -e "Plz set the install dir the same as bevor" 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" 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_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 -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 -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 msg_ok "Installing ${APP} Systemd Start/Stop Scripts and Service File"