diff options
author | Michiel De Mey <de.mey.michiel@gmail.com> | 2016-06-10 10:11:46 +0200 |
---|---|---|
committer | Michiel De Mey <de.mey.michiel@gmail.com> | 2016-06-10 10:11:46 +0200 |
commit | 90781dec56d01a779f55ad16484e69813c2a4f7c (patch) | |
tree | c511b1f8a37aee536a4bfe9982ef0996a6c78e20 /utils | |
parent | af1e63c36564ea935d13da22522523b064fe5906 (diff) | |
download | redis-90781dec56d01a779f55ad16484e69813c2a4f7c.tar.gz |
Added documentation for non-interactive install procedure
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/install_server.sh | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/utils/install_server.sh b/utils/install_server.sh index 34c238197..3d920a125 100755 --- a/utils/install_server.sh +++ b/utils/install_server.sh @@ -25,9 +25,25 @@ # ################################################################################ # -# Interactive service installer for redis server -# this generates a redis config file and an /etc/init.d script, and installs them -# this scripts should be run as root +# Service installer for redis server, runs interactively by default. +# +# To run this script non-interactively (for automation/provisioning purposes), +# feed the variables into the script. Any missing variables will be prompted! +# Tip: Environment variables also support command substitution (see REDIS_EXECUTABLE) +# +# Example: +# +# sudo REDIS_PORT=1234 \ +# REDIS_CONFIG_FILE=/etc/redis/1234.conf \ +# REDIS_LOG_FILE=/var/log/redis_1234.log \ +# REDIS_DATA_DIR=/var/lib/redis/1234 \ +# REDIS_EXECUTABLE=`command -v redis-server` ./utils/install_server.sh +# +# This generates a redis config file and an /etc/init.d script, and installs them. +# +# /!\ This script should be run as root +# +################################################################################ die () { echo "ERROR: $1. Aborting!" |