Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2352

Unportable shebang in shell scripts

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 5.1.0
    • Component/s: scripts
    • Labels:
      None

      Description

      Some shell scripts in oozie distribution use unportable shebangs:

      #!/bin/bash
      

      bash shell interpreter may be installed in different locations (e.g /usr/local/bin/bash on FreeBSD).

      The proposed solution is to use more portable

      #!/usr/bin/env bash
      

      instead.

      Affected files:

      bin/mkdistro.sh
      client/src/main/conf/oozie-client-env.sh
      client/target/oozie-client-5.0.0-client/oozie-client-5.0.0/conf/oozie-client-env.sh
      core/src/main/conf/oozie-env.sh
      core/src/main/resources/ssh-wrapper.sh
      distro/src/main/bin/addtowar.sh
      distro/src/main/bin/oozie-jetty-server.sh
      distro/src/main/bin/oozie-run.sh
      distro/src/main/bin/oozie-setup.sh
      distro/src/main/bin/oozie-start.sh
      distro/src/main/bin/oozie-stop.sh
      distro/src/main/bin/oozie-sys.sh
      distro/src/main/bin/oozied.sh
      tools/src/main/bin/oozie-diag-bundle-collector.sh
      tools/src/main/bin/ooziedb.sh
      

        Attachments

        1. OOZIE-2352-00.patch
          10 kB
          Artem Ervits

          Activity

            People

            • Assignee:
              dbist13 Artem Ervits
              Reporter:
              trtrmitya Dmitry Sivachenko
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: