19 Commits

Author SHA1 Message Date
Salvatore Sanfilippo
4e01236ba9 Merge pull request #1934 from badboy/install-script-1922
Don't use extended Regexp Syntax
2017-07-24 15:20:31 +02:00
Michiel De Mey
80ce0f7c13 Added documentation for non-interactive install procedure 2016-06-10 10:11:46 +02:00
Michiel De Mey
8bc30256b7 Allow non-interactive execution of install_server
This PR adds the ability to execute the installation script non-interactively, useful for automated provisioning scripts such as Chef, Puppet, Ansible, Salt, etc.
Simply feed the environment variables into the install script to skip the prompts.

For debug and verification purposes, the script will still output the selected config variables.
The plus side is that the environment variables also support command substitution (see REDIS_EXECUTABLE).

```
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

Welcome to the redis service installer
This script will help you easily set up a running redis server

Selected config:
Port           : 1234
Config file    : /etc/redis/1234.conf
Log file       : /var/log/redis_1234.log
Data dir       : /var/lib/redis/1234
Executable     : /usr/local/bin/redis-server
Cli Executable : /usr/local/bin/redis-cli
Copied /tmp/1234.conf => /etc/init.d/redis_1234
Installing service...
Successfully added to chkconfig!
Successfully added to runlevels 345!
Starting Redis server...
Installation successful!
```
2016-05-13 11:47:55 +02:00
Jan-Erik Rediger
00304f7ea8 Don't use extended Regexp Syntax
It's not POSIX (BSD systems have -E instead) and we don't actually need it.

Closes #1922
2014-08-13 19:34:03 +02:00
Jan-Erik Rediger
23b2912d73 install_server.sh: add missing bang
This was discovered by _bodya and reported in the IRC channel.
Everything worked fine as these scripts are always executed as shell
scripts.

Closes #1728
2014-08-07 17:14:08 +02:00
Jan-Erik Rediger
8858e0264b Finally fix the install_server.sh script.
Includes changes from a dozen bug reports and pull requests.
Was tested on Ubuntu, Debian and CentOS.
2014-03-15 14:43:50 +01:00
Brian J. McManus
cfe4d9c6b2 Issue 804 Add Default-Start and Default-Stop LSB tags for RedHat startup and update-rc.d compatability. 2012-12-02 21:46:37 -07:00
dvir volk
9f7b99ae66 fixed server install script to rewrite the default configuration file and not a template, and removed the old config template
Conflicts:

	utils/redis.conf.tpl
2012-10-05 12:32:58 +02:00
antirez
6def2e54c0 Explicitly use bash for install_server.sh. Fixes issue #397 2012-04-24 19:14:03 +02:00
ThePicard
5759548fc1 Fixed a typo in install_server.sh 2012-03-31 23:39:58 -07:00
antirez
a451c2d6f3 The universe is 80 columns wide, accept it. 2012-02-22 17:22:40 +01:00
Brad Voth
a21ca418b2 updated utils/install_server.sh to support chkconfig boxes (redhat/
centos) as well as debian/ubuntu
2012-01-18 10:09:42 -05:00
dvir volk
462312f782 fixes to install script 2011-10-04 16:58:55 +02:00
antirez
154fe41066 Revert "Use the new install script as make install target. Message about install script requiring root changed a bit to make it more evident."
After talking with Pieter he changed my mind about this, it is better to
have a simpler install script that works everywhere, and the complex one
can be always executed if needed by hand. We'll make possibly a new
target for the full featured installation script, and even suggest it
after a Make install.

This reverts commit 51154dc772039fe633427e61d17b828d648329ff.
2011-10-03 16:04:44 +02:00
antirez
51154dc772 Use the new install script as make install target. Message about install script requiring root changed a bit to make it more evident. 2011-10-03 13:28:54 +02:00
dvir volk
5b71365d75 changed license to gpl BSD. LOL 2011-10-03 11:35:30 +02:00
dvir volk
c9933e4685 changed license to gpl v3 2011-10-03 11:29:01 +02:00
dvir volk
cb7f47a359 fixes to install script and template 2011-10-03 10:58:43 +02:00
dvir volk
2972886bfc Added installer and config template renderer 2011-10-03 10:48:07 +02:00