Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. ERROR autoconfig-users.sh

ERROR autoconfig-users.sh

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 156 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    M
    moses
    wrote on last edited by
    #1

    Dear FOP2 Team,

    I try instal fop2 from source (fop2-2.29.00-centos-x86_64.tgz) on elastix 2.5.

    I if run from CLI

    sh /usr/local/fop2/autoconfig-users.sh the error show like this below

    [root@localhost fop2]# sh autoconfig-users.sh
    autoconfig-users.sh: line 109: syntax error near unexpected token <' autoconfig-users.sh: line 109: done < <( mysql -NB -u $DBUSER $DBPASS -h $DBHOST $DBNAME -e "SHOW tables FROM `$DBNAME` LIKE 'fop2users'"; )'

    Can u help me solve this issue?

    Thanks

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      Do you have a < sign in your database password?

      1 Reply Last reply
      0
      • M
        M
        moses
        wrote on last edited by
        #3

        No, I don't have, my password : password!!!

        Thanks

        1 Reply Last reply
        0
        • N
          N
          nicolas
          wrote on last edited by
          #4

          Well, you have an exclamation sign that most probably breaks the shell script also if its not escaped.

          I am not sure if it will work, but you can try to modify the script a little bit, find this line:

          DBPASSLINE=`cat /etc/amportal.conf | grep ^AMPDBPASS= | tail -n1`
          

          And change it to

          DBPASSLINE=`cat /etc/amportal.conf | grep ^AMPDBPASS= | tail -n1 | sed 's/!/\\!/g'`
          

          Or try changing your password to one without a special char like < > !

          If you modify autoconfig-users.sh and it works, then you will also have to modify autoconfig-buttons.sh

          1 Reply Last reply
          0
          • M
            M
            moses
            wrote on last edited by
            #5

            Thanks. i will try and report the result.

            1 Reply Last reply
            0
            • M
              M
              moses
              wrote on last edited by
              #6

              Hi Admin,

              The script is correct, no problem if i using sign !!! <> for password.

              I must run ./autoconfig-buttons.sh but if i run using command sh autoconfig-buttons.sh display error.

              Thanks

              1 Reply Last reply
              0
              • N
                N
                nicolas
                wrote on last edited by
                #7

                There is no need to prepend the shell, the script has execute permissions and calls explicitly bash on its first line. You can test the script by running

                /usr/local/fop2/autoconfig-users.sh

                And nothing else.

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups