Skip to content

Commit f89e185

Browse files
build: init directory.
1 parent 32111f6 commit f89e185

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

installer/start-all.sh

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

33
if [ "$MAXKB_DB_HOST" = "127.0.0.1" ]; then
4-
echo "PostgreSQL starting..."
54
/usr/bin/start-postgres.sh
6-
echo "PostgreSQL started."
75
fi
86

9-
107
if [ "$MAXKB_REDIS_HOST" = "127.0.0.1" ]; then
11-
echo "Redis starting..."
128
/usr/bin/start-redis.sh
13-
echo "Redis started."
149
fi
1510

1611
/usr/bin/start-maxkb.sh

installer/start-postgres.sh

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

33
mkdir -p /opt/maxkb/data/postgresql
4-
4+
echo "PostgreSQL starting..."
55
docker-entrypoint.sh postgres -c max_connections=${POSTGRES_MAX_CONNECTIONS} &
66
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."

installer/start-redis.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ ! -f /opt/maxkb/conf/redis.conf ]; then
77
touch /opt/maxkb/conf/redis.conf
88
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
99
fi
10-
10+
echo "Redis starting..."
1111
redis-server /opt/maxkb/conf/redis.conf &
1212
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."

0 commit comments

Comments
 (0)