mirror of
https://github.com/pjandro/fbS1Scripts.git
synced 2025-12-09 02:50:57 +03:00
install tgBot usind binaries
This commit is contained in:
parent
db7e3edcd9
commit
a95daaeb60
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user