Skip to content

Instantly share code, notes, and snippets.

@riccardobl
Created March 8, 2016 14:56
Show Gist options
  • Save riccardobl/d3ad82f60d8060f110db to your computer and use it in GitHub Desktop.
Save riccardobl/d3ad82f60d8060f110db to your computer and use it in GitHub Desktop.
Script for updating openfire tar.gz installation
#Usage: ./updateOpenfire.sh DOWNLOADLINK
DL_LINK=$1
BACKUP=openfire_backup`date '+%M.%d.%m.%Y'`
mv openfire $BACKUP
rm openfire.tar.gz
wget $DL_LINK -O openfire.tar.gz
tar -xzf openfire.tar.gz
cp -Rvf $BACKUP/conf openfire/
cp -Rvf $BACKUP/embedded-db openfire/
cp -Rvf $BACKUP/enterprise openfire/
cp -Rvf $BACKUP/resources/security openfire/resources/
cp -Rvf $BACKUP/plugins tmp_plugins
rm -Rf tmp_plugins/admin
cp -Rvf tmp_plugins/* openfire/plugins/
rm -Rf tmp_plugins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment