build: init directory.
This commit is contained in:
parent
0b8f5d7597
commit
1ebcc664bb
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ "$MAXKB_DB_HOST" = "127.0.0.1" ]; then
|
if [ "$MAXKB_DB_HOST" = "127.0.0.1" ]; then
|
||||||
/usr/bin/start-postgres.sh
|
/usr/bin/start-postgres.sh
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -5,7 +5,7 @@ mkdir -p /opt/maxkb/data/redis
|
|||||||
if [ ! -f /opt/maxkb/conf/redis.conf ]; then
|
if [ ! -f /opt/maxkb/conf/redis.conf ]; then
|
||||||
mkdir -p /opt/maxkb/conf
|
mkdir -p /opt/maxkb/conf
|
||||||
touch /opt/maxkb/conf/redis.conf
|
touch /opt/maxkb/conf/redis.conf
|
||||||
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
|
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
|
||||||
fi
|
fi
|
||||||
echo "Redis starting..."
|
echo "Redis starting..."
|
||||||
redis-server /opt/maxkb/conf/redis.conf &
|
redis-server /opt/maxkb/conf/redis.conf &
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user