wip-python -> removed cron for python scheduling, and added pyyaml library. #4

Merged
Djeex merged 2 commits from wip-python into main 2025-06-01 13:23:23 +02:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit 125c4eaed7 - Show all commits

View File

@ -140,7 +140,6 @@
3. **Build and start the container** 3. **Build and start the container**
```bash ```bash
docker compose build
docker compose up -d docker compose up -d
``` ```
4. **Check logs to verify updates** 4. **Check logs to verify updates**

View File

@ -84,7 +84,7 @@ def update_yaml_with_ips(ips):
logging.error(f"Failed to parse YAML file {ADGUARD_YAML}") logging.error(f"Failed to parse YAML file {ADGUARD_YAML}")
return False return False
data['disallowed_clients'] = ips data['dns']['disallowed_clients'] = ips
with TMP_YAML.open('w') as f: with TMP_YAML.open('w') as f:
yaml.safe_dump(data, f) yaml.safe_dump(data, f)