install.sh: токен можно передать аргументом gotelegram ТОКЕН

Made-with: Cursor
This commit is contained in:
anten-ka
2026-03-06 15:24:36 +03:00
parent 54bdf6b0d5
commit 687c2da2df
2 changed files with 8 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
# Готовая ссылка в формате kaskad
# Замените YOUR_GITHUB_TOKEN на свой токен (https://github.com/settings/tokens, право repo)
# Токен нужен дважды: в curl (скачать скрипт) и в конце (чтобы скрипт скачал файлы бота из приватного репо).
curl -sL -H "Authorization: token YOUR_GITHUB_TOKEN" https://raw.githubusercontent.com/anten-ka/gotelegram_pro/main/install.sh -o /usr/local/bin/gotelegram && chmod +x /usr/local/bin/gotelegram && systemctl restart gotelegram-bot 2>/dev/null; GITHUB_TOKEN=YOUR_GITHUB_TOKEN gotelegram
curl -sL -H "Authorization: token YOUR_GITHUB_TOKEN" https://raw.githubusercontent.com/anten-ka/gotelegram_pro/main/install.sh -o /usr/local/bin/gotelegram && chmod +x /usr/local/bin/gotelegram && systemctl restart gotelegram-bot 2>/dev/null; gotelegram YOUR_GITHUB_TOKEN