This commit is contained in:
Bob Mottram 2016-12-19 19:18:44 +00:00
parent b0c494b76d
commit 0962d621b5
1 changed files with 8 additions and 1 deletions

View File

@ -160,7 +160,7 @@ function update_prosody_modules {
hg update hg update
} }
function upgrade_xmpp { function upgrade_xmpp_server {
function_check update_prosody_modules function_check update_prosody_modules
update_prosody_modules update_prosody_modules
@ -198,7 +198,9 @@ function upgrade_xmpp {
rm ${INSTALL_DIR}/${prosody_filename}.tar.gz rm ${INSTALL_DIR}/${prosody_filename}.tar.gz
fi fi
systemctl restart prosody systemctl restart prosody
}
function upgrade_xmpp_client {
# update profanity client # update profanity client
if [ -f /usr/bin/profanity ]; then if [ -f /usr/bin/profanity ]; then
apt-get -y remove --purge profanity apt-get -y remove --purge profanity
@ -236,6 +238,11 @@ function upgrade_xmpp {
cp $INSTALL_DIR/profanity-omemo-plugin/omemo.py /etc/skel/.local/share/profanity/plugins cp $INSTALL_DIR/profanity-omemo-plugin/omemo.py /etc/skel/.local/share/profanity/plugins
} }
function upgrade_xmpp {
upgrade_xmpp_server
upgrade_xmpp_client
}
function backup_local_xmpp { function backup_local_xmpp {
source_directory=/var/lib/prosody source_directory=/var/lib/prosody
if [ -d $source_directory ]; then if [ -d $source_directory ]; then