Fix virtual environment

This commit is contained in:
Whispering Wind
2024-08-14 11:24:16 +03:30
committed by GitHub
parent b931c177e3
commit be42380968

View File

@ -32,7 +32,7 @@ Description=Singbox Python Service
After=network.target After=network.target
[Service] [Service]
ExecStart=/etc/hysteria/hysteria2_venv/bin/python /etc/hysteria/core/scripts/singbox/singbox.py ExecStart=/bin/bash -c 'source /etc/hysteria/hysteria2_venv/bin/activate && /etc/hysteria/hysteria2_venv/bin/python /etc/hysteria/core/scripts/singbox/singbox.py'
WorkingDirectory=/etc/hysteria/core/scripts/singbox WorkingDirectory=/etc/hysteria/core/scripts/singbox
EnvironmentFile=/etc/hysteria/core/scripts/singbox/.env EnvironmentFile=/etc/hysteria/core/scripts/singbox/.env
Restart=always Restart=always