mirror of
https://github.com/bitnami/containers.git
synced 2026-03-19 15:57:46 +08:00
wait for database after installing packages
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
. /opt/bitnami/express/functions
|
||||
|
||||
if [ "$1" == npm ] && [ "$2" == "start" -o "$2" == "run" ]; then
|
||||
wait_for_db
|
||||
|
||||
if ! app_present; then
|
||||
bootstrap_express_app
|
||||
fi
|
||||
@@ -12,6 +10,8 @@ if [ "$1" == npm ] && [ "$2" == "start" -o "$2" == "run" ]; then
|
||||
|
||||
install_packages
|
||||
|
||||
wait_for_db
|
||||
|
||||
if ! fresh_container; then
|
||||
echo "#########################################################################"
|
||||
echo " "
|
||||
|
||||
Reference in New Issue
Block a user