Fix virtual environment

This commit is contained in:
Whispering Wind
2024-08-14 11:21:57 +03:30
committed by GitHub
parent fec98d8027
commit b931c177e3

View File

@ -19,7 +19,7 @@ Description=Hysteria Telegram Bot
After=network.target After=network.target
[Service] [Service]
ExecStart=/etc/hysteria/hysteria2_venv/bin/python /etc/hysteria/core/scripts/telegrambot/tbot.py ExecStart=ExecStart=/bin/bash -c 'source /etc/hysteria/hysteria2_venv/bin/activate && /etc/hysteria/hysteria2_venv/bin/python /etc/hysteria/core/scripts/telegrambot/tbot.py'
WorkingDirectory=/etc/hysteria/core/scripts/telegrambot WorkingDirectory=/etc/hysteria/core/scripts/telegrambot
Restart=always Restart=always
User=root User=root