1
0
mirror of https://github.com/Oreomeow/VIP.git synced 2026-02-04 02:53:26 +08:00
Files
vip/Scripts/sh/DlHelper.sh
2022-03-09 20:43:36 +08:00

27 lines
764 B
Bash

#!/bin/bash
source /etc/profile
dir_sync=/root/Help/互助研究院\(1597522865\)/2021年07月
dir_git=/root/GitHub/VIP
Help=$dir_git/Scripts/sh/Helpcode2\.8
py=/root/telegram_channel_downloader/tg_channel_downloader.py
python3 $py &
(
echo "resolve_username DlHelper_bot"
sleep 5
echo "msg DlHelper /start https://t.me/update_help"
echo "safe_quit"
) | docker exec -i telegram-cli telegram-cli -N
cd $dir_git || exit
git fetch --all && git reset --hard origin/main && git pull
find $dir_sync -name "*code\.sh" -exec mv {} $Help/code\.sh \;
find $dir_sync -name "*task_before\.sh" -exec mv {} $Help/task_before\.sh \;
find $dir_sync -name "*config_sample\.sh" -exec mv {} $Help/config_sample\.sh \;
pgrep -f tg_channel_downloader.py | xargs kill -9