Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix issue #1485 #1486

Closed
wants to merge 1 commit into from

2 participants

@alonisser

Fixing an issue with install_server.sh script failing if not run from inside the utils folder

@mattsta mattsta closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 28, 2013
  1. @alonisser

    Fix issue #1485

    alonisser authored
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 3 deletions.
  1. +5 −3 utils/install_server.sh
View
8 utils/install_server.sh
@@ -97,11 +97,13 @@ if [ ! -f "$REDIS_EXECUTABLE" ] ; then
fi
+#get the utils folder path to use in templates
+UTIL_DIR="$(cd $(dirname $0) && pwd)"
-#render the tmplates
+#render the templates
TMP_FILE="/tmp/$REDIS_PORT.conf"
-DEFAULT_CONFIG="../redis.conf"
-INIT_TPL_FILE="./redis_init_script.tpl"
+DEFAULT_CONFIG="$UTIL_DIR/../redis.conf"
+INIT_TPL_FILE="$UTIL_DIR/./redis_init_script.tpl"
INIT_SCRIPT_DEST="/etc/init.d/redis_$REDIS_PORT"
PIDFILE="/var/run/redis_$REDIS_PORT.pid"
Something went wrong with that request. Please try again.