-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 16
-
Fix Version/s: None
-
Component/s: Userman
-
Labels:None
-
ToDo:
-
Distro Version:16
-
Distro:FreePBX Distro
It appears a recent update of the Userman module has added/altered this line to my Asterisk Crontab:
*/15 * * * * [ -e /usr/sbin/fwconsole ] && sleep $((RANDOM%30)) && /usr/sbin/fwconsole userman --syncall -q
This line fails to run in cron and generates an error email once an hour. I believe it is because of the $((RANDOM%30)) section, In particular the % not being escaped.