Browse Source

fix(details): fix to show last backup (#3348)

pull/3363/head
Christian 4 years ago
committed by GitHub
parent
commit
5fc8953bdc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lgsm/functions/info_distro.sh

2
lgsm/functions/info_distro.sh

@ -214,7 +214,7 @@ if [ -d "${backupdir}" ]; then
# number of backups. # number of backups.
backupcount=$(find "${backupdir}"/*.tar.gz | wc -l) backupcount=$(find "${backupdir}"/*.tar.gz | wc -l)
# most recent backup. # most recent backup.
lastbackup=$(ls -1tr "${backupdir}"/*.tar.gz | head -1) lastbackup=$(ls -1t "${backupdir}"/*.tar.gz | head -1)
# date of most recent backup. # date of most recent backup.
lastbackupdate=$(date -r "${lastbackup}") lastbackupdate=$(date -r "${lastbackup}")
# no of days since last backup. # no of days since last backup.

Loading…
Cancel
Save