Update powerwall.sh

This commit is contained in:
2023-11-02 10:35:18 -05:00
parent 8c2aa2ebf2
commit a0e8054087

View File

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