File tree 3 files changed +4
-9
lines changed
3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
if [ " $MAXKB_DB_HOST " = " 127.0.0.1" ]; then
4
- echo " PostgreSQL starting..."
5
4
/usr/bin/start-postgres.sh
6
- echo " PostgreSQL started."
7
5
fi
8
6
9
-
10
7
if [ " $MAXKB_REDIS_HOST " = " 127.0.0.1" ]; then
11
- echo " Redis starting..."
12
8
/usr/bin/start-redis.sh
13
- echo " Redis started."
14
9
fi
15
10
16
11
/usr/bin/start-maxkb.sh
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
mkdir -p /opt/maxkb/data/postgresql
4
-
4
+ echo " PostgreSQL starting... "
5
5
docker-entrypoint.sh postgres -c max_connections=${POSTGRES_MAX_CONNECTIONS} &
6
6
sleep 10
7
- /usr/bin/wait-for-it.sh 127.0.0.1:5432 --timeout=120 --strict
7
+ /usr/bin/wait-for-it.sh 127.0.0.1:5432 --timeout=120 --strict -- echo " PostgreSQL started. "
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ if [ ! -f /opt/maxkb/conf/redis.conf ]; then
7
7
touch /opt/maxkb/conf/redis.conf
8
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
9
9
fi
10
-
10
+ echo " Redis starting... "
11
11
redis-server /opt/maxkb/conf/redis.conf &
12
12
sleep 5
13
- /usr/bin/wait-for-it.sh 127.0.0.1:6379 --timeout=60 --strict
13
+ /usr/bin/wait-for-it.sh 127.0.0.1:6379 --timeout=60 --strict -- echo " Redis started. "
You can’t perform that action at this time.
0 commit comments