Browse Source

Don't delete conf

Bob Mottram 8 years ago
parent
commit
743222666f
1 changed files with 1 additions and 17 deletions
  1. 1
    17
      src/freedombone-app-jitsi

+ 1
- 17
src/freedombone-app-jitsi View File

117
 }
117
 }
118
 
118
 
119
 function upgrade_jitsi {
119
 function upgrade_jitsi {
120
-    if [ -f /etc/init.d/jicofo ]; then
121
-        systemctl stop jicofo
122
-        sed -i 's|exec $DAEMON|exec /usr/bin/torify $DAEMON|g' /etc/init.d/jicofo
123
-        systemctl daemon-reload
124
-        systemctl start jicofo
125
-    fi
120
+    echo -n ''
126
 }
121
 }
127
 
122
 
128
 function backup_local_jitsi {
123
 function backup_local_jitsi {
222
         exit 78372
217
         exit 78372
223
     fi
218
     fi
224
 
219
 
225
-    if [ -f /etc/nginx/sites-available/${JITSI_DOMAIN_NAME}.conf ]; then
226
-        rm /etc/nginx/sites-available/${JITSI_DOMAIN_NAME}.conf
227
-        systemctl restart nginx
228
-    fi
229
-
230
     # add jitsi repo
220
     # add jitsi repo
231
     jitsi_deb_repo=binary
221
     jitsi_deb_repo=binary
232
     apt-get -yq install wget debconf-utils default-jre
222
     apt-get -yq install wget debconf-utils default-jre
368
     cp /etc/ssl/private/${JITSI_DOMAIN_NAME}.key /etc/prosody/certs
358
     cp /etc/ssl/private/${JITSI_DOMAIN_NAME}.key /etc/prosody/certs
369
     chown prosody:prosody /etc/prosody/certs/${JITSI_DOMAIN_NAME}.*
359
     chown prosody:prosody /etc/prosody/certs/${JITSI_DOMAIN_NAME}.*
370
 
360
 
371
-    # remove extraneous nginx config generated by the deb package
372
-    if [ -f /etc/nginx/sites-available/${JITSI_DOMAIN_NAME}.conf ]; then
373
-        nginx_dissite ${JITSI_DOMAIN_NAME}.conf
374
-        rm /etc/nginx/sites-available/${JITSI_DOMAIN_NAME}.conf
375
-    fi
376
-
377
     function_check nginx_ensite
361
     function_check nginx_ensite
378
     nginx_ensite ${JITSI_DOMAIN_NAME}.conf
362
     nginx_ensite ${JITSI_DOMAIN_NAME}.conf
379
 
363