#!/bin/shif[-f /usr/local/openfire ];then# stop openfire/bin/launchctl unload /Library/LaunchDaemons/org.jivesoftware.openfire.plist# preserve these files, they should never be upgradedcp /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