-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Affects Version/s: 10.0.0
-
Component/s: Installer - Linux
-
1
-
Severity 3 - Minor
-
1
Issue Summary
Unattended upgrades using installation.type=DATA_CENTER_UPGRADE set BITBUCKET_HOME to the default path instead of the configured app.bitbucketHome value in Bitbucket 10.0.0 and above
Steps to Reproduce
- Create a response file containing:
cat props_UPGRADE_CLUSTER.txt app.bitbucketHome=/opt/home9.4.24 app.defaultInstallDir=/opt/install10.2.8 installation.type=DATA_CENTER_UPGRADE launch.application$Boolean=false sys.adminRights$Boolean=false sys.languageId=en confirm.disable.plugins$Boolean=true
- Run the 10.2.7 or 10.2.8 installer in unattended mode using the response file.
atlbitbucket@ip-10-140-17-147:~$ ./atlassian-bitbucket-10.2.8-x64.bin -q -varfile props_UPGRADE_CLUSTER.txt Unpacking JRE ... Starting Installer ... The target home directory is not empty. app.bitbucketHome=/opt/home9.4.24 The installation directory has been set to /opt/install10.2.8. Extracting files ... Finishing installation ...
- Verify the BITBUCKET_HOME variable in the set-bitbucket-home.sh file.
cat /opt/install10.2.8/bin/set-bitbucket-home.sh|grep BITBUCKET_HOME BITBUCKET_HOME="/home/atlbitbucket/atlassian/application-data/bitbucket"
Expected Results
The BITBUCKET_HOME variable should be set to the same path that's passed in the app.bitbucketHome variable.
Actual Results
set-bitbucket-home.sh file contains the default path <Linux-user-home-directory>/atlassian/application-data/bitbucket
Workaround
If you've already run the installer, manually update the BITBUCKET_HOME variable in the set-bitbucket-home.sh file before you start Bitbucket.
or
If the installer hasn't run yet, In the varfile, use installation.type=UPGRADE instead of installation.type=DATA_CENTER_UPGRADE.