Compare commits
3 Commits
83fdb54768
...
27689e25d8
Author | SHA1 | Date | |
---|---|---|---|
27689e25d8 | |||
29d1affcd8 | |||
43ee8de7ef |
@@ -20,7 +20,7 @@ vi .env
|
||||
that `prep.sh` is in `root`'s crontab.
|
||||
|
||||
```
|
||||
@reboot $DOCKER_HOME/Config/LibreTranslate/prep.sh
|
||||
@reboot /opt/Docker/Config/LibreTranslate/prep.sh
|
||||
```
|
||||
|
||||
3. Start the container up as normal.
|
||||
|
@@ -40,7 +40,7 @@ MODELS_DIR=../../Volumes/LibreTranslate/models
|
||||
# MODELS_DIR=
|
||||
|
||||
## 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 after a reboot.
|
||||
## `@reboot $DOCKER_HOME/Config/LibreTranslate/prep.sh`
|
||||
## 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`
|
||||
# MODELS_DIR=/tmp/LibreTranslate/models
|
||||
|
@@ -10,6 +10,7 @@ source $DIR/.env
|
||||
|
||||
## Main ##
|
||||
|
||||
# Create folders.
|
||||
if [[ $API_KEYS_DIR == "../*" ]]; then
|
||||
API_KEYS_DIR="$DIR/$API_KEYS_DIR"
|
||||
fi
|
||||
@@ -19,3 +20,6 @@ if [[ $MODELS_DIR == "../*" ]]; then
|
||||
MODELS_DIR="$DIR/$MODELS_DIR"
|
||||
fi
|
||||
mkdir -pv $MODELS_DIR
|
||||
|
||||
# Finish successfully.
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user