summaryrefslogtreecommitdiff
path: root/redis.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redis.sh')
-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