Created
March 8, 2016 14:56
-
-
Save riccardobl/d3ad82f60d8060f110db to your computer and use it in GitHub Desktop.
Script for updating openfire tar.gz installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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