Auto-Backup $'Thu May 15 2025 00:55:40 GMT+0200 (Central European Summer Time)'

This commit is contained in:
2025-05-15 01:36:03 +02:00
parent 240e43803c
commit 5e2e0253a2
5 changed files with 68 additions and 11 deletions

View File

@@ -1,5 +1,11 @@
#!/bin/bash
#!/bin/sh
set -e
rm -rf /root/.cache /home/*/.cache || true
rm -rf /var/log/*.{4,5,6,7,8,9}.* || true
docker system prune -af
if [ "$(id -u)" != 0 ]; then
echo "Must run as root"
exit 1
fi
docker exec -it pihole rm -f /var/log/pihole/pihole.log
docker restart pihole
docker system prune -f