diff --git a/package/secubox/secubox-app-metacatalog/files/usr/sbin/metacatalogctl b/package/secubox/secubox-app-metacatalog/files/usr/sbin/metacatalogctl index 0f16bac7..45daf571 100644 --- a/package/secubox/secubox-app-metacatalog/files/usr/sbin/metacatalogctl +++ b/package/secubox/secubox-app-metacatalog/files/usr/sbin/metacatalogctl @@ -509,85 +509,51 @@ EOF generate_landing() { log_info "Generating landing page..." - cat > "$LANDING_PATH/index.html" <<'HTMLEOF' + local template="/usr/share/metacatalog/templates/landing.html.tpl" + if [ -f "$template" ]; then + cp "$template" "$LANDING_PATH/index.html" + else + # Fallback: generate basic landing page + cat > "$LANDING_PATH/index.html" <<'HTMLEOF' -Bibliotheque Virtuelle SecuBox +Bibliothèque Virtuelle SecuBox -

Bibliotheque Virtuelle

+

Bibliothèque Virtuelle

Chargement...
- + HTMLEOF + fi log_info "Landing page generated at $LANDING_PATH/index.html" }