Progress on testing provisioning on multiple distros. So far Debian and Ubuntu are working. Others need packages added.
This commit is contained in:
23
Config/ProvisionTests/prep.sh
Normal file → Executable file
23
Config/ProvisionTests/prep.sh
Normal file → Executable file
@@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
source ../../source.env
|
||||
|
||||
## Main ##
|
||||
|
||||
# Create folders.
|
||||
|
||||
mkdir -pv "$PT_STORAGE_DIR/arch"
|
||||
mkdir -pv "$PT_STORAGE_DIR/debian"
|
||||
mkdir -pv "$PT_STORAGE_DIR/fedora"
|
||||
mkdir -pv "$PT_STORAGE_DIR/ubuntu"
|
||||
mkdir -pv "$PT_STORAGE_DIR/opensuse"
|
||||
|
||||
# Finish successfully.
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user