]> git.pld-linux.org Git - packages/4store.git/blob - 4store-bashisms.patch
- missing BRs
[packages/4store.git] / 4store-bashisms.patch
1 diff -ur 4store-v0.9.5-o/src/utilities/4s-cluster-cache 4store-v0.9.5/src/utilities/4s-cluster-cache
2 --- 4store-v0.9.5-o/src/utilities/4s-cluster-cache      2009-07-31 05:59:38.000000000 -0600
3 +++ 4store-v0.9.5/src/utilities/4s-cluster-cache        2009-08-09 13:17:49.949668010 -0600
4 @@ -1,5 +1,5 @@
5  #!/bin/sh
6 -if (($# == 1)) ; then
7 +if [ $# =  1 ]; then
8   logger -t $0 "'$*' by $USER"
9   4s-ssh-all 'for i in /var/lib/4store/'$1'/0*; do echo mv $i $i~; echo cp -a $i done'
10  else 
11 diff -ur 4store-v0.9.5-o/src/utilities/4s-cluster-copy 4store-v0.9.5/src/utilities/4s-cluster-copy
12 --- 4store-v0.9.5-o/src/utilities/4s-cluster-copy       2009-07-31 05:59:38.000000000 -0600
13 +++ 4store-v0.9.5/src/utilities/4s-cluster-copy 2009-08-09 13:18:03.015485601 -0600
14 @@ -1,5 +1,5 @@
15  #!/bin/sh
16 -if (($# >= 2)) ; then
17 +if [ $# -ge 2 ] ; then
18   logger -t $0 "'$*' by $USER"
19   4s-ssh-all-parallel 4s-backend-copy "$@"
20  else 
21 diff -ur 4store-v0.9.5-o/src/utilities/4s-cluster-create 4store-v0.9.5/src/utilities/4s-cluster-create
22 --- 4store-v0.9.5-o/src/utilities/4s-cluster-create     2009-07-31 05:59:38.000000000 -0600
23 +++ 4store-v0.9.5/src/utilities/4s-cluster-create       2009-08-09 13:18:13.348817741 -0600
24 @@ -1,5 +1,5 @@
25  #!/bin/sh
26 -if (($# >= 1)) ; then
27 +if [ $# = 1 ]; then
28   logger -t $0 "'$*' by $USER"
29   4s-ssh-all-parallel 4s-backend-setup --node '$id' --cluster '$nodes' --segments 32 "$@"
30  else 
31 diff -ur 4store-v0.9.5-o/src/utilities/4s-cluster-destroy 4store-v0.9.5/src/utilities/4s-cluster-destroy
32 --- 4store-v0.9.5-o/src/utilities/4s-cluster-destroy    2009-07-31 05:59:38.000000000 -0600
33 +++ 4store-v0.9.5/src/utilities/4s-cluster-destroy      2009-08-09 13:18:23.118819448 -0600
34 @@ -1,5 +1,5 @@
35  #!/bin/sh
36 -if (($# == 1)) ; then
37 +if [ $# = 1 ]; then
38   logger -t $0 "'$*' by $USER"
39   4s-ssh-all-parallel 4s-backend-destroy "$@"
40  else 
41 diff -ur 4store-v0.9.5-o/src/utilities/4s-cluster-info 4store-v0.9.5/src/utilities/4s-cluster-info
42 --- 4store-v0.9.5-o/src/utilities/4s-cluster-info       2009-07-31 05:59:38.000000000 -0600
43 +++ 4store-v0.9.5/src/utilities/4s-cluster-info 2009-08-09 13:19:10.108811466 -0600
44 @@ -1,5 +1,5 @@
45  #!/bin/sh
46 -if (($# == 1)) ; then
47 +if [ $# = 1 ]; then
48   4s-ssh-all-parallel 4s-backend-info "$1"
49  else 
50   echo "Usage: $0 <kbname>"
51 diff -ur 4store-v0.9.5-o/src/utilities/4s-cluster-replication-disable 4store-v0.9.5/src/utilities/4s-cluster-replication-disable
52 --- 4store-v0.9.5-o/src/utilities/4s-cluster-replication-disable        2009-07-31 05:59:38.000000000 -0600
53 +++ 4store-v0.9.5/src/utilities/4s-cluster-replication-disable  2009-08-09 13:19:17.105478080 -0600
54 @@ -1,6 +1,6 @@
55  #!/bin/sh
56  
57 -if (($# == 1)) ; then
58 +if [ $# = 1 ]; then
59   4s-ssh-all grep -q 'segment_m' '/var/lib/4store/'$1'/metadata.nt' '&&' sed "'/<http:\/\/id128.com\/4store#segment_m>/d'" '-i~' '/var/lib/4store/'$1'/metadata.nt'  '||' echo 'replication not enabled'
60  else 
61   echo "Usage: $0 <kbname>"
62 diff -ur 4store-v0.9.5-o/src/utilities/4s-cluster-start 4store-v0.9.5/src/utilities/4s-cluster-start
63 --- 4store-v0.9.5-o/src/utilities/4s-cluster-start      2009-07-31 05:59:38.000000000 -0600
64 +++ 4store-v0.9.5/src/utilities/4s-cluster-start        2009-08-09 13:19:24.712143630 -0600
65 @@ -1,5 +1,5 @@
66  #!/bin/sh
67 -if (($# == 1)) ; then
68 +if [ $# = 1 ]; then
69   logger -t $0 "'$*' by $USER"
70   4s-ssh-all 4s-backend "$1"
71  else 
72 diff -ur 4store-v0.9.5-o/src/utilities/4s-cluster-stop 4store-v0.9.5/src/utilities/4s-cluster-stop
73 --- 4store-v0.9.5-o/src/utilities/4s-cluster-stop       2009-07-31 05:59:38.000000000 -0600
74 +++ 4store-v0.9.5/src/utilities/4s-cluster-stop 2009-08-09 13:19:31.048806050 -0600
75 @@ -1,5 +1,5 @@
76  #!/bin/sh
77 -if (($# == 1)) ; then
78 +if [ $# = 1 ] ; then
79   logger -t $0 "'$*' by $USER"
80   4s-ssh-all "pkill -f ^4s-backend\ $1\$ || echo No matching 4store backend"
81  else 
82 diff -ur 4store-v0.9.5-o/src/utilities/4s-file-backup 4store-v0.9.5/src/utilities/4s-file-backup
83 --- 4store-v0.9.5-o/src/utilities/4s-file-backup        2009-07-31 05:59:38.000000000 -0600
84 +++ 4store-v0.9.5/src/utilities/4s-file-backup  2009-08-09 13:19:36.662147873 -0600
85 @@ -1,5 +1,5 @@
86  #!/bin/sh
87 -if (($# == 1)) ; then
88 +if [ $# = 1 ] ; then
89   (find /var/lib/4store/$1/ -newer /var/lib/4store/$1/backup || echo "always") |
90        grep "" > /dev/null || exit 2;
91   touch /var/lib/4store/$1/backup
This page took 0.05541 seconds and 3 git commands to generate.