Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-2005

apacheds.sh script does not run under Debian based distros

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Won't Fix
    • 2.0.0-M17
    • 2.0.0-M19
    • None
    • None
    • Debian Linux

    Description

      The tar.gz distribution of apacheds is throwing an error while trying to run

      ./apacheds.sh start
      
      ./apacheds.sh: 64: ./apacheds.sh: Syntax error: "(" unexpected (expecting ")")
      

      After some research, and since works fine under Arch Linux, I figured out the that the script (apacheds.sh) is using the /bin/sh link. Which under Debian systems is pointing to dash (the Debian Almquist Shell).

      Changing the first line of the script to

      #!/bin/bash
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rlenzi Rodrigo Lenzi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified