removed /etc and /opt

This commit is contained in:
cutemeli
2025-12-22 10:48:14 +00:00
parent 5ce7ca2c5d
commit 10d1afbb17
32559 changed files with 0 additions and 6756692 deletions

View File

@@ -1,15 +0,0 @@
#!/bin/sh
### Copyright 1999-2025. WebPros International GmbH. All rights reserved.
# discover "/opt/psa/var/health/data/*/$target-*" directories
# and remove rrd databases which have not being updated for a month
# also remove directories which became empty
# "disk", "df", and "interface" targets may refer to unmounted devices
# "plesk_cgroups" target may refer to removed users
for target in "disk" "df" "interface" "plesk_cgroups"; do
/usr/bin/find "/opt/psa/var/health/data" -mindepth 2 -maxdepth 2 -type d -name "${target}-*" | while read -r target_rrd_d; do
/usr/bin/find "$target_rrd_d" -mindepth 1 -maxdepth 1 -name "*.rrd" -type f -mtime +30 -delete
/usr/bin/find "$target_rrd_d" -maxdepth 0 -type d -empty -delete
done
done