Fix path bugs

This commit is contained in:
Iam54r1n4
2025-02-04 21:18:02 +00:00
parent 99bc45e08d
commit f2a98d2113
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ Description=Singbox Python Service
After=network.target After=network.target
[Service] [Service]
ExecStart=/bin/bash -c 'source /etc/hysteria/hysteria_venv/bin/activate && /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

View File

@ -82,7 +82,7 @@ After=network.target
[Service] [Service]
WorkingDirectory=/etc/hysteria/core/scripts/webpanel WorkingDirectory=/etc/hysteria/core/scripts/webpanel
EnvironmentFile=/etc/hysteria/core/scripts/webpanel/.env EnvironmentFile=/etc/hysteria/core/scripts/webpanel/.env
ExecStart=/bin/bash -c 'source /etc/hysteria/hysteria_venv/bin/activate && /etc/hysteria/hysteria_venv/bin/python /etc/hysteria/core/scripts/webpanel/app.py' ExecStart=/bin/bash -c 'source /etc/hysteria/hysteria2_venv/bin/activate && /etc/hysteria/hysteria2_venv/bin/python /etc/hysteria/core/scripts/webpanel/app.py'
#Restart=always #Restart=always
User=root User=root
Group=root Group=root