14 lines
314 B
Bash
Executable File
14 lines
314 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
SOURCE_DIR=$(realpath $(dirname "${0}"))/setup
|
|
|
|
# Configure Redis
|
|
mkdir -p /srv/redis/conf /srv/redis/data
|
|
cp ${SOURCE_DIR}/srv/redis/conf/redis.conf /srv/redis/conf/redis.conf
|
|
chown -R 6379:6379 /srv/redis/data
|
|
|
|
# Install service
|
|
cp ${SOURCE_DIR}/etc/init.d/redis /etc/init.d/redis
|
|
rc-update -u
|