From 3b5e115675bc6fa7fa175ea780cc7221055842ba Mon Sep 17 00:00:00 2001 From: Daniel Sosnowski Date: Tue, 2 Dec 2025 16:19:43 +0100 Subject: [PATCH] . --- clearCache.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/clearCache.sh b/clearCache.sh index 6930b17..98a35d8 100644 --- a/clearCache.sh +++ b/clearCache.sh @@ -3,7 +3,7 @@ declare -i diskUsage vhostDir="/var/www/vhosts" -diskUsage=$(df -h | grep /dev/mapper/tulup--vg-root | awk '{print $5}' | cut -d% -f1) +diskUsage=$(df -h | grep /dev/mapper/Fabricsy--vg-root | awk '{print $5}' | cut -d% -f1) if [[ $diskUsage -ge 50 ]] then @@ -20,13 +20,10 @@ then for subscription in "${subscriptionList[@]}" do - if [[ -d "$subscription/httpdocs/shopsystem/application/cache/boxes" ]] - then - cd "$subscription/httpdocs/shopsystem/application/cache/boxes" - elif [[ -d "$subscription/httpdocs/shopsystem/application/cache/smarty_compiled" ]] - then - cd "$subscription/httpdocs/shopsystem/application/cache/smarty_compiled" - fi + if [[ -d "$subscription/httpdocs/shopsystem/application/cache/boxes" ]] + then + cd "$subscription/httpdocs/shopsystem/application/cache/boxes" + fi echo -e "CzyszczÄ™ cache w subskrybcji $subscription...\n" ls -1 > "/tmp/dirList.txt" readarray -t dirList < /tmp/dirList.txt