Details
-
Bug
-
Resolution: Duplicate
-
Low
-
5.7.0, 5.8.1
-
None
-
None
-
Severity 3 - Minor
-
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.
- (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