first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
16
base/joomla/3.4.5/docker-entrypoint.sh
Normal file
16
base/joomla/3.4.5/docker-entrypoint.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
while ! mysqladmin ping -h "${JOOMLA_DB_HOST:-localhost}" -P "${JOOMLA_DB_PORT:-3306}" -u "${JOOMLA_DB_USER:-root}" --password="${JOOMLA_DB_PASSWORD:-root}" --silent; do
|
||||
echo "waiting for mysql ready..."
|
||||
sleep 1
|
||||
done
|
||||
|
||||
if [[ ! -e "/var/www/html/configuration.php" ]]; then
|
||||
joomla site:install --www /var/www -L "${JOOMLA_DB_USER:-root}:${JOOMLA_DB_PASSWORD:-root}" -H "${JOOMLA_DB_HOST:-localhost}" -P "${JOOMLA_DB_PORT:-3306}" --mysql-database "${JOOMLA_DB_NAME:-joomla}" --mysql-driver mysqli --sample-data=blog -- html
|
||||
sed -i "s/public \$debug = '1';/public \$debug = 0;/" /var/www/html/configuration.php
|
||||
chown -R www-data:www-data /var/www/html
|
||||
fi
|
||||
|
||||
exec "$@"
|
Reference in New Issue
Block a user