added new loop

This commit is contained in:
Daniel Sosnowski
2025-12-03 10:02:20 +01:00
parent 3b5e115675
commit c9cf5009c1

View File

@@ -19,11 +19,9 @@ then
for subscription in "${subscriptionList[@]}"
do
if [[ -d "$subscription/httpdocs/shopsystem/application/cache/boxes" ]]
then
cd "$subscription/httpdocs/shopsystem/application/cache/boxes"
fi
for path in "$subscription/httpdocs/shopsystem/application/cache/boxes"* "$subscription/httpdocs/shopsystem/appcation/cache/smarty_compiled"
do
cd "$path"
echo -e "Czyszczę cache w subskrybcji $subscription...\n"
ls -1 > "/tmp/dirList.txt"
readarray -t dirList < /tmp/dirList.txt
@@ -39,6 +37,7 @@ then
done
cd "$vhostDir"
done
done
fi