preupgrade 426 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/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