I reinstalled OMV 5.5.9-1on Armbian 20.08 and it seem the scheduled jobs don't seem to work anymore.
Here attached the image of the GUI of the command set to switch off the system at midnight and switch it on at 9.00 in the morning.
The mail sent at execution has subject:
[localhost] Cron <root@arxiv> /var/lib/openmediavault/cron.d/userdefined-d419c9d7-e6e4-4f75-bdd0-cb8f5ab0f848 | mail -E -s "Cron - Power off @00.00 Power on @9.00" -a "From: Cron Daemon <root>" root >/dev/null 2>&1
The command output in the mail message is:
/var/lib/openmediavault/cron.d/userdefined-d419c9d7-e6e4-4f75-bdd0-cb8f5ab0f848: 20: /etc/profile.d/armbian-check-first-login.sh: Syntax error: "(" unexpected
It reports an error executing a system script (armbian-check-first-login.sh). The file /var/lib/openmediavault/cron.d/userdefined-....0f848 however contains the correct command "rtcwake -m off -s 32400".
If I try to run in OMV the scheduled job I always get a message error but the rtcwake command correctly works.
Is here any mistake ? How can I resolve it ?