mirror of
https://github.com/10h30/ols-docker-env.git
synced 2026-05-12 15:21:24 +09:00
log sync
This commit is contained in:
@@ -38,6 +38,5 @@ COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
WORKDIR /var/www/html/
|
||||
|
||||
CMD ["/usr/local/lsws/bin/openlitespeed","-n"]
|
||||
|
||||
Vendored
@@ -1,15 +1,17 @@
|
||||
#!/bin/bash
|
||||
cd localhost/html
|
||||
cd /var/www/html
|
||||
if [ ! -f "./wp-config.php" ]; then
|
||||
# su -s /bin/bash www-data -c
|
||||
COUNTER=0
|
||||
until [ "$(curl -v mysql:3306 2>&1 | grep native)" ];
|
||||
do
|
||||
echo "Counter: ${COUNTER}"
|
||||
COUNTER=$((COUNTER+1))
|
||||
if [ ${COUNTER} = 10 ]; then
|
||||
echo '--- MySQL is starting, please wait... ---'
|
||||
elif [ ${COUNTER} = 100 ]; then
|
||||
echo '--- MySQL is timeout, exit! ---'
|
||||
exit 1
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
@@ -33,7 +35,7 @@ if [ ! -f "./wp-config.php" ]; then
|
||||
--skip-email \
|
||||
--allow-root
|
||||
wp plugin install litespeed-cache \
|
||||
--activate
|
||||
--activate \
|
||||
--allow-root
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user