Skip to content

Commit a2f9b73

Browse files
authored
Merge pull request #7 from Tapjoy/fix/script-order
Sort the output of `find` for pre/post-flight scripts
2 parents 691b231 + 5129ea0 commit a2f9b73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

riak-cluster.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export COORDINATOR_NODE=${COORDINATOR_NODE:-$HOSTNAME}
3434
export COORDINATOR_NODE_HOST=$(ping -c1 $COORDINATOR_NODE | awk '/^PING/ {print $3}' | sed 's/[()]//g')||'127.0.0.1'
3535

3636
# Run all prestart scripts
37-
PRESTART=$(find /etc/riak/prestart.d -name *.sh -print)
37+
PRESTART=$(find /etc/riak/prestart.d -name *.sh -print | sort)
3838
for s in $PRESTART; do
3939
. $s
4040
done
@@ -44,7 +44,7 @@ $RIAK start
4444
$RIAK_ADMIN wait-for-service riak_kv
4545

4646
# Run all poststart scripts
47-
POSTSTART=$(find /etc/riak/poststart.d -name *.sh -print)
47+
POSTSTART=$(find /etc/riak/poststart.d -name *.sh -print | sort)
4848
for s in $POSTSTART; do
4949
. $s
5050
done

0 commit comments

Comments
 (0)