File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ set -e
4
+
3
5
if [ " $MAXKB_DB_HOST " = " 127.0.0.1" ]; then
4
6
/usr/bin/start-postgres.sh
5
7
fi
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ mkdir -p /opt/maxkb/data/redis
5
5
if [ ! -f /opt/maxkb/conf/redis.conf ]; then
6
6
mkdir -p /opt/maxkb/conf
7
7
touch /opt/maxkb/conf/redis.conf
8
- printf " bind 0.0.0.0\nport 6379\nmaxmemory 1G\nmaxmemory-policy allkeys-lru\ndir /opt/maxkb/data/redis\nrequirepass " ${REDIS_PASSWORD} " \n" > /opt/maxkb/conf/redis.conf
8
+ printf " bind 0.0.0.0\nport 6379\ndatabases 16\ nmaxmemory 1G\nmaxmemory-policy allkeys-lru\ndir /opt/maxkb/data/redis\nrequirepass " ${REDIS_PASSWORD} " \n" > /opt/maxkb/conf/redis.conf
9
9
fi
10
10
echo " Redis starting..."
11
11
redis-server /opt/maxkb/conf/redis.conf &
You can’t perform that action at this time.
0 commit comments