Bob Mottram 8 лет назад
Родитель
Сommit
40c602d54a
1 измененных файлов: 7 добавлений и 7 удалений
  1. 7
    7
      src/freedombone-app-xmpp

+ 7
- 7
src/freedombone-app-xmpp Просмотреть файл

430
         exit 68224283
430
         exit 68224283
431
     fi
431
     fi
432
 
432
 
433
-    tar -xzvf ${prosody_filename}.tar.gz
434
-    cd ${prosody_filename}
433
+    tar -xzvf ${INSTALL_DIR}/${prosody_filename}.tar.gz
434
+    cd ${INSTALL_DIR}/${prosody_filename}
435
     ./configure --ostype=debian
435
     ./configure --ostype=debian
436
     make
436
     make
437
     make install
437
     make install
438
     if [ ! -f /usr/local/bin/prosody ]; then
438
     if [ ! -f /usr/local/bin/prosody ]; then
439
         echo $'Failed to build prosody nightly'
439
         echo $'Failed to build prosody nightly'
440
-        rm ${prosody_filename}.tar.gz
441
-        rm -rf ${prosody_filename}
440
+        rm ${INSTALL_DIR}/${prosody_filename}.tar.gz
441
+        rm -rf ${INSTALL_DIR}/${prosody_filename}
442
         exit 628732
442
         exit 628732
443
     fi
443
     fi
444
-    cp /usr/local/bin/prosody* /usr/bin
444
+    cp -f /usr/local/bin/prosody* /usr/bin
445
     rm /usr/local/bin/prosody*
445
     rm /usr/local/bin/prosody*
446
-    rm ${prosody_filename}.tar.gz
447
-    rm -rf ${prosody_filename}
446
+    rm ${INSTALL_DIR}/${prosody_filename}.tar.gz
447
+    rm -rf ${INSTALL_DIR}/${prosody_filename}
448
 }
448
 }
449
 
449
 
450
 function install_xmpp_main {
450
 function install_xmpp_main {