Goals:
- Easy to upgrade
- Auto start on boot
Before you start
You may need to tweak commands for the correct versions of Fisheye you have. Mine were as follows…
- Current version of fisheye was 2.5.2.
- Upgrading to 2.5.5
- Moving to separate the application / data directory [by using FISHEYE_INST]
How to
1. Backup fisheye using built-in backup feature
2. Shutdown fisheye
./fecru-2.5.2/bin/stop.sh
3. Create new directories
mkdir -p /opt/fisheye/data
3. Create a user for fisheye
groupadd -g 5000 fisheye
useradd -g fisheye -u 5000 fisheye -d /opt/fisheye -m
4. Move your fisheye installation
mv fecru-2.5.2 /opt/fisheye/
5. Separate out data files
cd /opt/fisheye
cp fecru-2.5.2/config.xml data/
cp -r fecru-2.5.2/var data/
cp -r fecru-2.5.2/cache data/
6. Download latest version
wget http://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.5.5.zip
unzip fisheye-2.5.5.zip
ln -s fecru-2.5.5 current
The ln command is used so the init.d script doesn’t need to be changed after an upgrade.
7. Install init script
wget http://patrick.qmtech.net/downloads/fisheye
mv fisheye /etc/init.d/
chmod +x /etc/init.d/fisheye
update-rc.d fisheye defaults
8. Make sure file permissions are right
chown -R fisheye:fisheye .
9. Start it up [and watch the log to check for errors]
/etc/init.d/fisheye start
tail -f current/var/log/fisheye.out
Crtl+C to break out of tail
Roundup
So now the following should apply…
- Data in /opt/fisheye/data
- Application in /opt/fisheye/fecru-2.5.5 [symbolic linked to current dir for easy upgrading]
- init script for auto start on boot