瀏覽代碼

Move SIP upgrade into app script

Bob Mottram 8 年之前
父節點
當前提交
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