@@ -11,7 +11,11 @@ if [ -f "/root/.ssh/id_rsa.pub" ] ;
11
11
then
12
12
cp /root/.ssh/id_rsa.pub /var/local/id_rsa.pub
13
13
chown www-data /var/local/id_rsa.pub
14
- fi
14
+ fi
15
+
16
+ # ## Create Xdebug log file
17
+ mkdir -p /var/log/xdebug
18
+ touch /var/log/xdebug/remote.log && chmod 777 /var/log/xdebug/remote.log
15
19
16
20
# ## Set web server root folder according to env variable ###
17
21
@@ -76,6 +80,12 @@ IFS=$SAVEIFS
76
80
# ## Run composer install & app bootstrap scripts ###
77
81
cd /var/www
78
82
83
+ # Check for delay start
84
+ if [ -z ${DELAY_START+x} ]; then true ; else
85
+ echo " Delaying container start for ${DELAY_START} ..." ;
86
+ sleep ${DELAY_START} ;
87
+ fi
88
+
79
89
# Copy env file
80
90
81
91
if [ ! -f " /var/www/.env" ]; then
@@ -85,10 +95,6 @@ if [ ! -f "/var/www/.env" ]; then
85
95
86
96
fi
87
97
88
- # Create Xdebug log file
89
- mkdir -p /var/log/xdebug
90
- touch /var/log/xdebug/remote.log && chmod 777 /var/log/xdebug/remote.log
91
-
92
98
# Run composer install
93
99
if [ -f " /var/www/composer.json" ] ;
94
100
then
0 commit comments