From a95daaeb6048dc34a62f700a4573b4a7b79812cb Mon Sep 17 00:00:00 2001 From: Ilya Korshunov Date: Tue, 24 Jun 2025 04:21:35 +0300 Subject: [PATCH] install tgBot usind binaries --- installTgBot.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/installTgBot.sh b/installTgBot.sh index 7f06398..7791cd9 100644 --- a/installTgBot.sh +++ b/installTgBot.sh @@ -5,18 +5,13 @@ if [ "$#" -ne 1 ]; then fi cat << EOF | chroot /server/tmp /bin/bash apt install python3-virtualenv automake libtool libwebp-dev -virtualenv -p /usr/bin/python3 --system-site-package /home/gem/moonraker-telegram-bot-env/ -/home/gem/moonraker-telegram-bot-env/bin/pip install --upgrade pip -mkdir -p /home/gem/space -export TMPDIR=/home/gem/space cd /home/gem -git clone https://github.com/nlef/moonraker-telegram-bot.git -cat /home/gem/moonraker-telegram-bot/scripts/requirements.txt | grep -v "uvloop" > /home/gem/space/requirements.txt -/home/gem/moonraker-telegram-bot-env/bin/pip install --no-cache-dir -r /home/gem/space/requirements.txt +wget https://github.com/pjandro/fbS1Scripts/raw/refs/heads/main/bins/tgBot.tar +tar xfvp tgBot.tar +rm tgBot.tar cp /home/gem/moonraker-telegram-bot/scripts/base_install_template /home/gem/printer_data/config/telegram-bot.cfg sed -i '/AweSomeBotToken/c\bot_token: $1\' /home/gem/printer_data/config/telegram-bot.cfg chown gem:gem /home/gem/printer_data/config/telegram-bot.cfg -rm -rf ./space/ wget https://raw.githubusercontent.com/pjandro/fbS1Scripts/refs/heads/main/adds/tgBot.sh chmod +x ./tgBot.sh mv ./kp.sh kp.sh_back