Bob Mottram 8 年 前
コミット
0962d621b5
共有1 個のファイルを変更した8 個の追加1 個の削除を含む
  1. 8
    1
      src/freedombone-app-xmpp

+ 8
- 1
src/freedombone-app-xmpp ファイルの表示

160
     hg update
160
     hg update
161
 }
161
 }
162
 
162
 
163
-function upgrade_xmpp {
163
+function upgrade_xmpp_server {
164
     function_check update_prosody_modules
164
     function_check update_prosody_modules
165
     update_prosody_modules
165
     update_prosody_modules
166
 
166
 
198
         rm ${INSTALL_DIR}/${prosody_filename}.tar.gz
198
         rm ${INSTALL_DIR}/${prosody_filename}.tar.gz
199
     fi
199
     fi
200
     systemctl restart prosody
200
     systemctl restart prosody
201
+}
201
 
202
 
203
+function upgrade_xmpp_client {
202
     # update profanity client
204
     # update profanity client
203
     if [ -f /usr/bin/profanity ]; then
205
     if [ -f /usr/bin/profanity ]; then
204
         apt-get -y remove --purge profanity
206
         apt-get -y remove --purge profanity
236
     cp $INSTALL_DIR/profanity-omemo-plugin/omemo.py /etc/skel/.local/share/profanity/plugins
238
     cp $INSTALL_DIR/profanity-omemo-plugin/omemo.py /etc/skel/.local/share/profanity/plugins
237
 }
239
 }
238
 
240
 
241
+function upgrade_xmpp {
242
+    upgrade_xmpp_server
243
+    upgrade_xmpp_client
244
+}
245
+
239
 function backup_local_xmpp {
246
 function backup_local_xmpp {
240
     source_directory=/var/lib/prosody
247
     source_directory=/var/lib/prosody
241
     if [ -d $source_directory ]; then
248
     if [ -d $source_directory ]; then