Restore AppFactory scripts to stable versions

This commit is contained in:
2026-05-27 09:29:18 +02:00
parent b6ed79cc3f
commit 438c29e2e0
9 changed files with 88 additions and 254 deletions
+9 -7
View File
@@ -1,14 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail
BASE_DIR="/opt/appfactory"
CATALOG_FILE="$BASE_DIR/apps/catalog.yml"
OUTPUT_DIR="$BASE_DIR/gateway/static"
CONFIG_FILE="/opt/appfactory/config/appfactory.env"
source "$CONFIG_FILE"
CATALOG_FILE="$APPFACTORY_DIR/apps/catalog.yml"
OUTPUT_DIR="$APPFACTORY_DIR/gateway/static"
OUTPUT_FILE="$OUTPUT_DIR/apps.html"
mkdir -p "$OUTPUT_DIR"
cat > "$OUTPUT_FILE" <<'EOF'
cat > "$OUTPUT_FILE" <<'EOF_HTML'
<!doctype html>
<html>
<head>
@@ -31,7 +33,7 @@ cat > "$OUTPUT_FILE" <<'EOF'
<th>Docs</th>
<th>Health</th>
</tr>
EOF
EOF_HTML
awk '
function print_row() {
@@ -57,10 +59,10 @@ awk '
}
' "$CATALOG_FILE" >> "$OUTPUT_FILE"
cat >> "$OUTPUT_FILE" <<'EOF'
cat >> "$OUTPUT_FILE" <<'EOF_HTML'
</table>
</body>
</html>
EOF
EOF_HTML
echo "Generated: $OUTPUT_FILE"