diff options
author | Andreas Maunz <andreas@maunz.de> | 2011-03-29 13:55:07 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2011-03-29 13:55:07 +0200 |
commit | 32b7c10610616d3c6321b8d28f26dbad7a6057a2 (patch) | |
tree | 27aa899a4a67bb0ac68c43bba9fbd84bf22d15ad /redis.sh | |
parent | 7acd2561a4f046128fc3d93c84f5771a59c465a4 (diff) |
Fixed redis control flow
Diffstat (limited to 'redis.sh')
-rwxr-xr-x | redis.sh | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -31,7 +31,7 @@ if [ ! -d "$REDIS_DEST" ]; then exit 1 else if ! rmdir "$REDIS_DEST" >/dev/null 2>&1; then # if not empty this will fail - echo "Install directory '$REDIS_DEST' is not empty. Skipping kernlab installation..." + echo "Install directory '$REDIS_DEST' is not empty. Skipping Redis installation..." REDIS_DONE=true else mkdir "$REDIS_DEST" >/dev/null 2>&1 @@ -51,19 +51,19 @@ if ! $REDIS_DONE; then fi echo "daemonize yes" > $REDIS_SERVER_CONF echo "dir `pwd`" >> $REDIS_SERVER_CONF +fi - echo - echo "Preparing Redis..." - if [ ! -f $REDIS_CONF ]; then - echo "export PATH=$REDIS_DEST/src:\$PATH" >> "$REDIS_CONF" - echo "Redis configuration has been stored in '$REDIS_CONF'." - echo -n "Decide if Redis configuration should be linked to your .bashrc ('y/n'): " - read ANSWER_REDIS_CONF - if [ $ANSWER_REDIS_CONF = "y" ]; then - echo "source \"$REDIS_CONF\"" >> $HOME/.bashrc - fi - else - echo "It seems Redis is already configured ('$RUBY_CONF' exists)." +echo +echo "Preparing Redis..." +if [ ! -f $REDIS_CONF ]; then + echo "export PATH=$REDIS_DEST/src:\$PATH" >> "$REDIS_CONF" + echo "Redis configuration has been stored in '$REDIS_CONF'." + echo -n "Decide if Redis configuration should be linked to your .bashrc ('y/n'): " + read ANSWER_REDIS_CONF + if [ $ANSWER_REDIS_CONF = "y" ]; then + echo "source \"$REDIS_CONF\"" >> $HOME/.bashrc fi - +else + echo "It seems Redis is already configured ('$RUBY_CONF' exists)." fi + |