Allow container to reboot properly if using /tmp/ for models. Fixes newly created folder having permissions issues.

This commit is contained in:
2025-07-26 13:35:32 -07:00
parent 15f01061ba
commit eb2dda9d66
3 changed files with 30 additions and 12 deletions

View File

@@ -12,10 +12,6 @@ COMPOSE_BAKE=true
CPU=2.00
RAM=4.0G
# How much the users are able to utilize the server.
REQUESTS=100
CHARACTERS=2000
### Languages ###
## Check for language model updates on each run.
@@ -45,6 +41,5 @@ MODELS_DIR=../../Volumes/LibreTranslate/models
## Storing them in /tmp/ will cause them to get reset after reboots, but hides
## them from backup type locations such as Volumes/LibreTranslate/ and /var/.
## This will require a CRON entry for prepping the project dirs after a reboot.
## `@reboot /opt/Docker/Config/LibreTranslate/prep.sh`
## Please see the README for the CRON command related to this setting.
# MODELS_DIR=/tmp/LibreTranslate/models