Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-23162

userman 15.0.65 creates bad crontab entry

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 15
    • Fix Version/s: None
    • Component/s: Userman
    • Labels:
      None
    • ToDo:
    • Asterisk Version:
      18.8.0
    • Distro Version:
      N/A

      Description

      This update adds the following crontab entry:

      
      */15 * * * * [ -e /usr/sbin/fwconsole ] && sleep $((RANDOM%30)) && /usr/sbin/fwconsole userman --syncall -q
      

      resulting in repeated emails:

      
      Subject: Cron <asterisk@FreePBX> [ -e /usr/sbin/fwconsole ] && sleep $((RANDOM
      X-Cron-Env: <SHELL=/bin/sh>
      X-Cron-Env: <HOME=/home/asterisk>
      X-Cron-Env: <PATH=/usr/bin:/bin>
      X-Cron-Env: <LOGNAME=asterisk>
      
      /bin/sh: 1: Syntax error: Missing '))'
      

      The added crontab entry needs to be:

      
      */15 * * * * [ -e /usr/sbin/fwconsole ] && sleep $((RANDOM\%30)) && /usr/sbin/fwconsole userman --syncall -q
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  reraikes RonR
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    NextupJiraPlusStatus

                    Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.