.
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
declare -i diskUsage
|
declare -i diskUsage
|
||||||
vhostDir="/var/www/vhosts"
|
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 ]]
|
if [[ $diskUsage -ge 50 ]]
|
||||||
then
|
then
|
||||||
|
|
||||||
@@ -23,9 +23,6 @@ then
|
|||||||
if [[ -d "$subscription/httpdocs/shopsystem/application/cache/boxes" ]]
|
if [[ -d "$subscription/httpdocs/shopsystem/application/cache/boxes" ]]
|
||||||
then
|
then
|
||||||
cd "$subscription/httpdocs/shopsystem/application/cache/boxes"
|
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
|
fi
|
||||||
echo -e "Czyszczę cache w subskrybcji $subscription...\n"
|
echo -e "Czyszczę cache w subskrybcji $subscription...\n"
|
||||||
ls -1 > "/tmp/dirList.txt"
|
ls -1 > "/tmp/dirList.txt"
|
||||||
|
|||||||
Reference in New Issue
Block a user