summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-04-08 12:30:14 +0200
committerAndreas Maunz <andreas@maunz.de>2011-04-08 12:30:14 +0200
commitfdb3a13ccfed12e143d0ceb5eb9bd89ed8355c61 (patch)
treecf92907aff03c3a0851ba7590c32a4351ac60d41
parent1e9174342a0bae9b7e00c6d81a8271934a90baf7 (diff)
Fixed redis idempotency
-rw-r--r--redis.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis.sh b/redis.sh
index 2dc97a5..fa1b696 100644
--- a/redis.sh
+++ b/redis.sh
@@ -58,7 +58,7 @@ if ! $REDIS_DONE; then
fi
if [ ! -f $REDIS_CONF ]; then
- echo "export PATH=$REDIS_DEST/src:\$PATH" >> "$REDIS_CONF"
+ echo "if ! echo \"\$PATH\" | grep \"$REDIS_DEST\"; then export PATH=$REDIS_DEST/src:\$PATH; fi" >> "$REDIS_CONF"
echo "Redis configuration has been stored in '$REDIS_CONF'."
if ! grep ". \"$REDIS_CONF\"" $OT_UI_CONF; then