Add an initial working configuration for LibreTranslate.
This commit is contained in:
21
Config/LibreTranslate/prep.sh
Executable file
21
Config/LibreTranslate/prep.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
# 2025-07-22 Hyperling
|
||||
# Create the necessary folders for LibreTranslate's volumes to work.
|
||||
# This must be run before the container will start properly.
|
||||
|
||||
## Setup ##
|
||||
|
||||
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
|
||||
source $DIR/.env
|
||||
|
||||
## Main ##
|
||||
|
||||
if [[ $API_KEYS_DIR == "../*" ]]; then
|
||||
API_KEYS_DIR="$DIR/$API_KEYS_DIR"
|
||||
fi
|
||||
mkdir -pv $API_KEYS_DIR
|
||||
|
||||
if [[ $MODELS_DIR == "../*" ]]; then
|
||||
MODELS_DIR="$DIR/$MODELS_DIR"
|
||||
fi
|
||||
mkdir -pv $MODELS_DIR
|
Reference in New Issue
Block a user