File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ if ${SSL_SELF_SIGNED:=true}; then
3737 ln -s /etc/nginx/sites-available/fbctf-ssl.conf /etc/nginx/sites-enabled/fbctf-ssl.conf
3838else
3939 ln -s /etc/nginx/sites-available/fbctf.conf /etc/nginx/sites-enabled/fbctf.conf
40- sed -i -r -e ' /private static bool \$s_secure/ {s/true/false/}' /var/www/fbctf /src/SessionUtils.php
40+ sed -i -r -e ' /private static bool \$s_secure/ {s/true/false/}' $CTF_PATH /src/SessionUtils.php
4141fi
4242
4343# Forward request and error logs to docker log collector
@@ -48,11 +48,12 @@ ln -sf /dev/stdout /var/log/nginx/access.log \
4848echo -e " [client]\nhost=mysql" > ~ /.my.cnf
4949
5050 # Wait for the mysql container to be ready
51- while ! nc -z mysql 3306 ; do
52- echo " Waiting for mysql to start " ;
51+ while ! mysqlshow -u $MYSQL_USER -p $MYSQL_PASSWORD > /dev/null 2>&1 ; do
52+ echo " Waiting for mysql to be ready " ;
5353 sleep 1;
5454done ;
5555
56+
5657# Don't errase the database if it exists
5758if [ $( mysql -N -s -u $MYSQL_USER --password=$MYSQL_PASSWORD -e \
5859 " select count(*) from information_schema.tables where \
You can’t perform that action at this time.
0 commit comments