Bob Mottram před 9 roky
rodič
revize
4c0ce24d4c

+ 3
- 3
src/freedombone-addsipuser Zobrazit soubor

@@ -43,7 +43,7 @@ function show_help {
43 43
 }
44 44
 
45 45
 function sip_user_exists {
46
-    for line in $ (cat $CONFIG_FILE)
46
+    for line in $(cat $CONFIG_FILE)
47 47
     do
48 48
         if [[ "$line" == "<user id=\"$MY_USERNAME\">" ]]; then
49 49
             USER_EXISTS="yes"
@@ -59,7 +59,7 @@ function update_sip_user {
59 59
         rm -f $NEW_CONFIG_FILE
60 60
     fi
61 61
     touch $NEW_CONFIG_FILE
62
-    for line in $ (cat $CONFIG_FILE)
62
+    for line in $(cat $CONFIG_FILE)
63 63
     do
64 64
         if [ ! $USER_FOUND ]; then
65 65
             if [[ "$line" == "<user id=\"$MY_USERNAME\">" ]]; then
@@ -88,7 +88,7 @@ function add_sip_user {
88 88
         rm -f $NEW_CONFIG_FILE
89 89
     fi
90 90
     touch $NEW_CONFIG_FILE
91
-    for line in $ (cat $CONFIG_FILE)
91
+    for line in $(cat $CONFIG_FILE)
92 92
     do
93 93
         if [[ "$line" == '</provision>' ]]; then
94 94
             echo "<user id=\"$MY_USERNAME\">" >> $NEW_CONFIG_FILE

+ 2
- 2
src/freedombone-rmsipuser Zobrazit soubor

@@ -41,7 +41,7 @@ function show_help {
41 41
 }
42 42
 
43 43
 function sip_user_exists {
44
-    for line in $ (cat $CONFIG_FILE)
44
+    for line in $(cat $CONFIG_FILE)
45 45
     do
46 46
         if [[ "$line" == "<user id=\"$MY_USERNAME\">" ]]; then
47 47
             USER_EXISTS="yes"
@@ -57,7 +57,7 @@ function remove_sip_user {
57 57
         rm -f $NEW_CONFIG_FILE
58 58
     fi
59 59
     touch $NEW_CONFIG_FILE
60
-    for line in $ (cat $CONFIG_FILE)
60
+    for line in $(cat $CONFIG_FILE)
61 61
     do
62 62
         if [ ! $USER_FOUND ]; then
63 63
             if [[ "$line" == "<user id=\"$MY_USERNAME\">" ]]; then

+ 1
- 1
src/freedombone-sipfreeext Zobrazit soubor

@@ -34,7 +34,7 @@ CONFIG_FILE=/etc/sipwitch.conf
34 34
 extensions=()
35 35
 
36 36
 # get the used extensions
37
-for line in $ (cat $CONFIG_FILE)
37
+for line in $(cat $CONFIG_FILE)
38 38
 do
39 39
     if [[ "$line" == "<extension>"* ]]; then
40 40
         ext=$(echo "$line" | awk -F '>' '{print $2}' | awk -F '<' '{print $1}')