/build-redis.sh
#!/bin/sh

. lib.sh
. common.opts

load_opts "$1"

JAILNAME=$REDIS_JAILNAME
ADDR=$REDIS_ADDR

set -e
set -x

bastille bootstrap https://gitlab.com/bastillebsd-templates/redis

bastille create $JAILNAME $FREEBSD_RELEASE $ADDR
bastille template $JAILNAME bastillebsd-templates/redis
bastille cp $JAILNAME redis/redis.conf usr/local/etc/
bastille service $JAILNAME redis restart