Skip to content
This repository was archived by the owner on Apr 26, 2023. It is now read-only.

Commit 6a39631

Browse files
committed
improve the boot background work for chown
1 parent 2d64051 commit 6a39631

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

root/etc/cont-init.d/95-bootstrap.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ mkdir -p /config/www/{uploads,files,images}
77
#echo "stderr" > /var/run/s6/container_environment/LOG_CHANNEL
88

99
echo "**** chown /config and /var/www in background ****"
10-
chown -R abc:abc /config /var/www/ &&
10+
chown -R abc:abc /config /var/www &>/dev/null &
1111

1212
if [ ! -f /config/www/key.txt ]; then
1313
echo "***** Generating BookStack app key for first run *****"
@@ -65,6 +65,7 @@ STORAGE_S3_ENDPOINT=${STORAGE_S3_ENDPOINT}
6565
STORAGE_URL=${STORAGE_URL}
6666
END
6767

68+
echo "**** check database connection ****"
6869
chmod +x /usr/bin/wait-for-it.sh
6970
# Check database connection before migrations
7071
wait-for-it.sh "${DATABASE_HOST}:3306" -t 30

0 commit comments

Comments
 (0)