mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-12-12 10:57:57 +00:00
Add .env (#5216)
This commit is contained in:
@@ -43,6 +43,10 @@ $STD uv pip install "numpy<2"
|
|||||||
$STD uv pip install .
|
$STD uv pip install .
|
||||||
$STD uv pip install libretranslate
|
$STD uv pip install libretranslate
|
||||||
$STD .venv/bin/python scripts/install_models.py
|
$STD .venv/bin/python scripts/install_models.py
|
||||||
|
|
||||||
|
cat <<EOF >/opt/libretranslate/.env
|
||||||
|
LT_PORT=5000
|
||||||
|
EOF
|
||||||
msg_ok "Installed LibreTranslate"
|
msg_ok "Installed LibreTranslate"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
@@ -56,6 +60,7 @@ User=root
|
|||||||
Type=idle
|
Type=idle
|
||||||
Restart=always
|
Restart=always
|
||||||
Environment="PATH=/usr/local/lib/python3.11/dist-packages/libretranslate"
|
Environment="PATH=/usr/local/lib/python3.11/dist-packages/libretranslate"
|
||||||
|
EnvironmentFile=/opt/libretranslate/.env
|
||||||
ExecStart=/opt/libretranslate/.venv/bin/python3 /opt/libretranslate/.venv/bin/libretranslate --host * --update-models
|
ExecStart=/opt/libretranslate/.venv/bin/python3 /opt/libretranslate/.venv/bin/libretranslate --host * --update-models
|
||||||
ExecReload=/bin/kill -s HUP
|
ExecReload=/bin/kill -s HUP
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
|
|||||||
Reference in New Issue
Block a user