Update powerwall.sh

This commit is contained in:
2023-11-02 10:33:35 -05:00
parent 8de8236a54
commit 73dbe781cf

View File

@@ -1245,7 +1245,7 @@ LOGROTATE(){
# sleep 5s
# STARTALL_SERVICES
backupstokeep=(`ls -d ${PW_LOGARCHIVE}/* 2> /dev/null | tail -12`)
backupstokeep=(`ls -d ${PW_LOGARCHIVE}/* 2> /dev/null | sort -r | tail -12`)
for folder in $(ls -d ${PW_LOGARCHIVE}/*); do
keep=0
for filetokeep in ${backupstokeep[@]}; do