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

@@ -1,8 +1,8 @@
# LibreTranslate Configuration
# Libreranslate Configuration
## Install
1. Copy `env.example` to `.env` and adjust the values as necessary.
0. Copy `env.example` to `.env` and adjust the values as necessary.
```
cd $DOCKER_HOME/Config/LibreTranslate
@@ -16,14 +16,14 @@ vi .env
./prep.sh
```
1. If using a temporary location for `models/` such as `/tmp/`, ensure
that `prep.sh` is in `root`'s crontab.
2. If using a temporary location for `models/` such as `/tmp/`, ensure
that the reboot script is in `root`'s crontab to set the folders back up.
```
@reboot /opt/Docker/Config/LibreTranslate/prep.sh
@reboot /opt/Docker/Config/LibreTranslate/cron-reboot.sh
```
1. Start the container up as normal.
3. Start the container up as normal.
```
cp docker-compose.main.yml docker-compose.yml