mirror of
https://gitlab.com/octospacc/Configs.git
synced 2025-06-05 21:59:36 +02:00
Auto-Backup $'Thu May 15 2025 00:55:40 GMT+0200 (Central European Summer Time)'
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user