Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-15887

start-bamboo.sh and stop-bamboo.sh missing hash-bang at beginning of scripts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • 5.9.1
    • 5.7.0, 5.8.1
    • None
    • None

    Description

      Linux scripts like start-bamboo.sh and stop-bamboo.sh need a hash-bang line at the top to be properly understood to be executed.

      As a tcsh user, I cannot run those scripts directly unless I add "sh" to my commandline or add "#!/bin/sh" to the first line of the script.

      Here's my proof:
      [twm@mohr bamboo-home]# ../atlassian-bamboo-5.8.1/bin/stop-bamboo.sh
      PRG=../atlassian-bamboo-5.8.1/bin/stop-bamboo.sh: Command not found.
      PRG: Undefined variable.

      1. (it tries to interpret the script with tcsh)

      ... and after I edit the script:
      [twm@mohr bamboo-home]# vim ../atlassian-bamboo-5.8.1/bin/stop-bamboo.sh
      [twm@mohr bamboo-home]# ../atlassian-bamboo-5.8.1/bin/stop-bamboo.sh

      Bamboo Standalone Edition
      Version : 5.8.1

      Detecting JVM PermGen support...
      PermGen switch is supported. Setting to 256m

      If you encounter issues starting or stopping Bamboo Server, please see the Troubleshooting guide at https://confluence.atlassian.com/display/BAMBOO/Installing+and+upgrading+Bamboo

      Using CATALINA_BASE: /ci/bamboo/atlassian-bamboo-5.8.1
      Using CATALINA_HOME: /ci/bamboo/atlassian-bamboo-5.8.1
      Using CATALINA_TMPDIR: /ci/bamboo/atlassian-bamboo-5.8.1/temp
      Using JRE_HOME: /usr
      Using CLASSPATH: /ci/bamboo/atlassian-bamboo-5.8.1/bin/bootstrap.jar:/ci/bamboo/atlassian-bamboo-5.8.1/bin/tomcat-juli.jar

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              0b0a6607a9a8 Tyler Mace
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: