#!/bin/sh if [ -f /usr/local/openfire ]; then # stop openfire /bin/launchctl unload /Library/LaunchDaemons/org.jivesoftware.openfire.plist # preserve these files, they should never be upgraded cp /usr/local/openfire/conf/openfire.xml /tmp/ cp -r /usr/local/openfire/resources/security /tmp/ cp -r /usr/local/openfire/embedded-db /tmp/ cp -r /usr/local/openfire/enterprise /tmp/ cp -r /usr/local/openfire/plugins /tmp/ fi