fix: deploy lng directory, absolute translation path
This commit is contained in:
parent
bad04bf390
commit
af8dc42dd6
2 changed files with 6 additions and 1 deletions
|
|
@ -122,6 +122,11 @@ if [ "$GREENFIELD" = true ]; then
|
|||
cp -r "$SCRIPT_DIR/config/www"/* "$TARGET_DIR/www/"
|
||||
fi
|
||||
|
||||
# Copy language files
|
||||
if [ -d "$SCRIPT_DIR/lng" ]; then
|
||||
cp -r "$SCRIPT_DIR/lng" "$TARGET_DIR/lng"
|
||||
fi
|
||||
|
||||
# Deploy Caddy + Authelia
|
||||
echo "[5/5] Deploying Caddy and Authelia..."
|
||||
mkdir -p "$TARGET_DIR/data/caddy"
|
||||
|
|
|
|||
2
main.go
2
main.go
|
|
@ -485,7 +485,7 @@ func loadTranslations(lang string) Translations {
|
|||
return cached
|
||||
}
|
||||
}
|
||||
basePath := filepath.Join(os.Getenv("CONFIG_DIR"), "../../lng", lang)
|
||||
basePath := filepath.Join("/opt/nextworkspace", "lng", lang)
|
||||
result := Translations{}
|
||||
files := []string{"launcher.yaml", "admin.yaml"}
|
||||
for _, f := range files {
|
||||
|
|
|
|||
Loading…
Reference in a new issue