After upgrading to Focal on hc1 I countinously receive cron mails with the following content:
/usr/lib/armbian/armbian-truncate-logs: 19: /etc/default/armbian-ramlog: Syntax error: "(" unexpected
Similar problem is reported here: https://forum.yunohost.org/t/continuously-receiving-email-about-armbian-log/16549
After checking the code, the problem seams to be, that nowerdays /etc/default/armbian-ramlog contains something like
# If USE_RSYNC is true, additional options may be specified for the rsync
# commands used to synchronize logs to disk from RAM (XTRA_RSYNC_TO) or from
# disk to RAM (XTRA_RSYNC_FROM). These are bash arrays to make specifying
# multiple arguments easy even in the presence of whitespace.
XTRA_RSYNC_TO=(
## If you use log rotation programs that datestamp their logs (e.g., runit's
## svlogd or daemontools' multilog), deleting log files while synchronizing is
## likely a good idea.
# --delete
)
When now /usr/lib/armbian/armbian-truncate-logs sources this file, this will always fail because the script is using `#!/bin/sh` which is actually (at least on my system) a link to dash.
To fix the problem, in armbian-truncate-logs the first line should be replaced with `#!/bin/bash` and the error disappears.
Would be great if this could be fixed.
Cheers