Tidying
This commit is contained in:
parent
b0c494b76d
commit
0962d621b5
|
@ -160,7 +160,7 @@ function update_prosody_modules {
|
|||
hg update
|
||||
}
|
||||
|
||||
function upgrade_xmpp {
|
||||
function upgrade_xmpp_server {
|
||||
function_check update_prosody_modules
|
||||
update_prosody_modules
|
||||
|
||||
|
@ -198,7 +198,9 @@ function upgrade_xmpp {
|
|||
rm ${INSTALL_DIR}/${prosody_filename}.tar.gz
|
||||
fi
|
||||
systemctl restart prosody
|
||||
}
|
||||
|
||||
function upgrade_xmpp_client {
|
||||
# update profanity client
|
||||
if [ -f /usr/bin/profanity ]; then
|
||||
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
|
||||
}
|
||||
|
||||
function upgrade_xmpp {
|
||||
upgrade_xmpp_server
|
||||
upgrade_xmpp_client
|
||||
}
|
||||
|
||||
function backup_local_xmpp {
|
||||
source_directory=/var/lib/prosody
|
||||
if [ -d $source_directory ]; then
|
||||
|
|
Loading…
Reference in New Issue