Skip to content

Commit 1ebcc66

Browse files
build: init directory.
1 parent 0b8f5d7 commit 1ebcc66

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

installer/start-all.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -e
4+
35
if [ "$MAXKB_DB_HOST" = "127.0.0.1" ]; then
46
/usr/bin/start-postgres.sh
57
fi

installer/start-redis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mkdir -p /opt/maxkb/data/redis
55
if [ ! -f /opt/maxkb/conf/redis.conf ]; then
66
mkdir -p /opt/maxkb/conf
77
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
99
fi
1010
echo "Redis starting..."
1111
redis-server /opt/maxkb/conf/redis.conf &

0 commit comments

Comments
 (0)