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

userman --syncall -q Crontab needs to escape %

    XMLWordPrintable

    Details

    • 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

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nickpl nickpl
              • Votes:
                0 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.