This commit is contained in:
team3
2026-09-19 22:22:51 +02:00
parent 7da689889c
commit e1b532b35c
7 changed files with 70 additions and 17 deletions

View File

@@ -47,7 +47,7 @@ sync-config:
echo "Sync-Zugang vorhanden: $(SYNC_JSON)"
elif [ -f .env ] && grep -q "^SYNC_TOKEN=.\+" .env; then
mkdir -p "$(dir $(SYNC_JSON))"
printf '{"url": "$(SYNC_URL)", "token": "%s", "interval": 5}\n' "$$(grep ^SYNC_TOKEN= .env | cut -d= -f2-)" > "$(SYNC_JSON)"
printf '{"url": "$(SYNC_URL)", "token": "%s"}\n' "$$(grep ^SYNC_TOKEN= .env | cut -d= -f2-)" > "$(SYNC_JSON)"
chmod 600 "$(SYNC_JSON)"
echo "Sync-Zugang angelegt: $(SYNC_JSON)"
else