added new loop
This commit is contained in:
@@ -19,25 +19,24 @@ then
|
||||
|
||||
for subscription in "${subscriptionList[@]}"
|
||||
do
|
||||
|
||||
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
|
||||
for dir in "${dirList[@]}"
|
||||
for path in "$subscription/httpdocs/shopsystem/application/cache/boxes"* "$subscription/httpdocs/shopsystem/appcation/cache/smarty_compiled"
|
||||
do
|
||||
if [[ -d "$dir" ]]
|
||||
then
|
||||
echo -e "Czyszczenie $dir...\n"
|
||||
cd "$dir"
|
||||
ls -1
|
||||
cd ..
|
||||
fi
|
||||
cd "$path"
|
||||
echo -e "Czyszczę cache w subskrybcji $subscription...\n"
|
||||
ls -1 > "/tmp/dirList.txt"
|
||||
readarray -t dirList < /tmp/dirList.txt
|
||||
for dir in "${dirList[@]}"
|
||||
do
|
||||
if [[ -d "$dir" ]]
|
||||
then
|
||||
echo -e "Czyszczenie $dir...\n"
|
||||
cd "$dir"
|
||||
ls -1
|
||||
cd ..
|
||||
fi
|
||||
done
|
||||
cd "$vhostDir"
|
||||
done
|
||||
cd "$vhostDir"
|
||||
done
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user