summaryrefslogtreecommitdiff
path: root/redis.sh
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2011-04-01 15:37:43 +0200
committerAndreas Maunz <andreas@maunz.de>2011-04-01 15:37:43 +0200
commit7dacb96c5c4c46f8fd0c76bd26e5d37319bb5eb1 (patch)
treef271b93c98e0c5193911197f90decc505a18c28c /redis.sh
parentb69506cc0d7b3b2336444b6458cde7507388a8ca (diff)
all
Diffstat (limited to 'redis.sh')
-rwxr-xr-xredis.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/redis.sh b/redis.sh
index ea85c3b..a6fdc30 100755
--- a/redis.sh
+++ b/redis.sh
@@ -4,7 +4,8 @@
# Author: Christoph Helma, Andreas Maunz.
#
-source ./utils.sh
+source "`pwd`/utils.sh"
+DIR=`pwd`
if [ "$(id -u)" = "0" ]; then
echo "This script must be run as non-root." 1>&2
@@ -23,7 +24,6 @@ LOG="/tmp/`basename $0`-log.txt"
echo "This installs Redis."
echo "Log file is '$LOG'."
-DIR=`pwd`
REDIS_DONE=false
mkdir "$REDIS_DEST" >/dev/null 2>&1
@@ -60,8 +60,6 @@ if ! $REDIS_DONE; then
fi
fi
-cd "$DIR"
-
if [ ! -f $REDIS_CONF ]; then
echo "export PATH=$REDIS_DEST/src:\$PATH" >> "$REDIS_CONF"
echo "Redis configuration has been stored in '$REDIS_CONF'."