mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-08-09 17:26:20 +00:00
update 1.2.4.1
This commit is contained in:
@@ -10048,7 +10048,12 @@ def _update_smart_cron():
|
||||
# scheduled tests in history" with no obvious clue why.
|
||||
cmd = f'/usr/local/share/proxmenux/scripts/storage/smart-scheduled-test.sh --schedule-id {schedule_id} --test-type {test_type} --retention {retention}'
|
||||
if disks != ['all']:
|
||||
cmd += f" --disks '{','.join(disks)}'"
|
||||
# Prepend /dev/ when the UI stored the disk as a basename
|
||||
# (sdb, nvme0n1, …). The runner's `[[ -b "$disk" ]]` check
|
||||
# only accepts full block-device paths, so basenames were
|
||||
# silently skipped and no test ever ran.
|
||||
disk_args = [d if d.startswith('/') else f'/dev/{d}' for d in disks]
|
||||
cmd += f" --disks '{','.join(disk_args)}'"
|
||||
|
||||
cron_lines.append(f'{cron_time} root {cmd} >> /var/log/proxmenux/smart-schedule.log 2>&1')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user