Mailspring/scripts/run-redis.sh
2017-02-06 13:13:22 -08:00

17 lines
447 B
Bash
Executable file

#!/bin/bash
# Redis is one of those servers which by default
# accept connections from everywhere. Luckily,
# homebrew and presumably debian come with sane
# defaults. However, they're located in different
# directories.
if [[ $(uname) = 'Darwin' ]]; then
echo "Running redis from Homebrew..."
redis-server /usr/local/etc/redis.conf
fi
if [[ $(uname) = 'Linux' ]]; then
echo "Running redis"
redis-server /etc/redis/redis.conf
fi