Atlassian tools and scripts for Confluence and Jira servers
Install onto the production server.
APP=confluence #set to one of 'confluence' or 'jira'
export QS_GIT_REPO=https://github.com/ncsa/atlassian-tools.git
#export QS_GIT_BRANCH=branch_name #optional - specify a branch other than main
curl https://raw.githubusercontent.com/andylytical/quickstart/main/quickstart.sh | bash
mkdir -p ~/.config/atlassian-tools/
cp -n ~/atlassian-tools/conf/config.sh-${APP}-sample ~/.config/atlassian-tools/config.sh
ln -s ~/.config/atlassian-tools/config.sh ~/atlassian-tools/conf/
Create a copy of prod for testing
- Prod server:
- Install this repo via the instructions above
- NOTE: Installer is idempotent (can run multiple times). It will only update old files and will make backups of any files to be replaced.
- VMware:
- Clone the prod server to a test VM
- Disconnect the network on the test server
- Start the test server
- Login as root on the console of the test server
/root/atlassian-tools/bin/go_mk_test_server.sh
/root/atlassian-tools/bin/go_validate_test_server.sh
shutdown -h now
- Ensure test VM is powered off
- Re-enable the network
- Power-on the test VM
- root@aesculus (only if DB is still remote)
bash /home/aloftus/mk-jira-test-db.sh
- root@jira-test (or root@wiki-test)
bash /root/atlassian-tools/bin/go_fix_web.sh
/usr/services/jira-standalone/bin/start-jira.sh
(OR/usr/services/confluence/bin/start-confluence.sh
)tail -f /usr/services/jira-standalone/logs/catalina.out
(OR/usr/services/confluence/logs/catalina.out
)
This also works for Confluence, tested Feb 2024.
- Follow the instructions above to create a test VM cloned from prod
- Clone this repo to a local machine
cd atlassian-tools/install-upgrade
- Download the latest atlassian installer into the appropriate directory (ie: 'confluence/' or 'jira/')
./01_push_installer_files.sh <target-host> <APP>
- ... where
<APP>
is one ofconfluence
orjira
- ... where
- SSH to the target host, escalate to root
- For Install:
/home/<USER>/<APP>/02_installer.sh
- Note: 02_installer.sh will pick the latest installer version found in the directory unless a filename is specified on the cmdline.
- Note: The installer will read the install config from
response.varfile
- Note: Use
-h
for more help
- For Upgrade:
- Run the installer file manually, choose option 3 (upgrade)
- Restore the server.xml file:
/home/<USER>/<APP>/02_installer.sh -c
- For Install: