Просмотр исходного кода

Move SIP upgrade into app script

Bob Mottram 8 лет назад
Родитель
Сommit
9c3d627bf2
2 измененных файлов: 4 добавлений и 6 удалений
  1. 4
    1
      src/freedombone-app-sip
  2. 0
    5
      src/freedombone-upgrade

+ 4
- 1
src/freedombone-app-sip Просмотреть файл

@@ -38,7 +38,10 @@ VOIP_TURN_TLS_PORT=5349
38 38
 VOIP_TURN_NONCE=
39 39
 
40 40
 function upgrade_sip {
41
-	echo -n ''
41
+	# remove the original sipwitch daemon if it exists
42
+	if [ -f /etc/init.d/sipwitch ]; then
43
+		rm -f /etc/init.d/sipwitch
44
+	fi
42 45
 }
43 46
 
44 47
 function backup_local_sip {

+ 0
- 5
src/freedombone-upgrade Просмотреть файл

@@ -109,11 +109,6 @@ if [ -d $PROJECT_DIR ]; then
109 109
 	fi
110 110
 fi
111 111
 
112
-# remove the original sipwitch daemon if it exists
113
-if [ -f /etc/init.d/sipwitch ]; then
114
-	rm -f /etc/init.d/sipwitch
115
-fi
116
-
117 112
 if [ -f /usr/bin/reset-tripwire ]; then
118 113
 	echo '
119 114