Move data inside package and update references

This commit is contained in:
thePR0M3TH3AN
2025-06-21 12:20:51 -04:00
parent c5b6077eee
commit b72d726bd5
31 changed files with 8 additions and 6 deletions

View File

@@ -0,0 +1,21 @@
#!/bin/bash
set -euo pipefail
IMPORT_DIR="imports"
shopt -s nullglob
files=("$IMPORT_DIR"/*.json)
if [[ ${#files[@]} -eq 0 ]]; then
echo "No JSON files found in $IMPORT_DIR"
exit 0
fi
for json in "${files[@]}"; do
echo "Processing $json"
cp "$json" src/config.json
subdomain=$(jq -r '.subdomain' "$json")
dest="host/$subdomain"
rm -rf "$dest"
voxvera build --config src/config.json
done