Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-1444

setup.sh.txt DBARGS not implemented properly

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Blocker
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: None
    • Labels:
      None

      Description

      When running a setup on a server which required hostname and port, I ran into several problems. Upon looking at setup.sg.txt (why isn't it just called setup.sh?), I noticed that the DBARGS variable has 2 issues:

      1. using -z in the if statement will return true for something like "-hmyhost -P1111". Anything in quotes get a zero length return. Since DB args almost always have spaces in them, quotes are needed. After that some lines which should be using $DBARGS are not even using it, causing mysql failures.

        Attachments

          Activity

            People

            • Assignee:
              shailesh Shailesh Lende
              Reporter:
              jacobsingh Jacob Singh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: