mirror of
https://github.com/cytopia/devilbox.git
synced 2025-01-19 03:06:30 +00:00
Fix Wordpress CI check
This commit is contained in:
parent
a409c214c7
commit
593dfbe31a
@ -91,16 +91,16 @@ run "docker-compose exec --user devilbox -T php php -l /shared/httpd/${VHOST}/wo
|
|||||||
|
|
||||||
# Install Wordpress
|
# Install Wordpress
|
||||||
if ! run "docker-compose exec --user devilbox -T php curl -sS --fail -L -XPOST -c cookie.txt -b cookie.txt \
|
if ! run "docker-compose exec --user devilbox -T php curl -sS --fail -L -XPOST -c cookie.txt -b cookie.txt \
|
||||||
'http://${VHOST}.${TLD_SUFFIX}:${HOST_PORT_HTTPD}/wp-admin/install.php?step=1'\
|
'http://${VHOST}.${TLD_SUFFIX}/wp-admin/install.php?step=1'\
|
||||||
--data 'language=1' >/dev/null" "${RETRIES}" "${DVLBOX_PATH}"; then
|
--data 'language=1' >/dev/null" "${RETRIES}" "${DVLBOX_PATH}"; then
|
||||||
run "docker-compose exec --user devilbox -T php curl -sS --fail -L -XPOST -c cookie.txt -b cookie.txt \
|
run "docker-compose exec --user devilbox -T php curl -sS --fail -L -XPOST -c cookie.txt -b cookie.txt \
|
||||||
'http://${VHOST}.${TLD_SUFFIX}:${HOST_PORT_HTTPD}/wp-admin/install.php?step=1'\
|
'http://${VHOST}.${TLD_SUFFIX}/wp-admin/install.php?step=1'\
|
||||||
--data 'language=1' >/dev/null" "1" "${DVLBOX_PATH}"
|
--data 'language=1' >/dev/null" "1" "${DVLBOX_PATH}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! run "docker-compose exec --user devilbox -T php curl -sS --fail -L -XPOST -c cookie.txt -b cookie.txt \
|
if ! run "docker-compose exec --user devilbox -T php curl -sS --fail -L -XPOST -c cookie.txt -b cookie.txt \
|
||||||
'http://${VHOST}.${TLD_SUFFIX}:${HOST_PORT_HTTPD}/wp-admin/install.php?step=2' \
|
'http://${VHOST}.${TLD_SUFFIX}/wp-admin/install.php?step=2' \
|
||||||
--data 'weblog_title=${PROJECT_NAME}' \
|
--data 'weblog_title=${PROJECT_NAME}' \
|
||||||
--data 'user_name=admin' \
|
--data 'user_name=admin' \
|
||||||
--data 'admin_password=password' \
|
--data 'admin_password=password' \
|
||||||
@ -110,7 +110,7 @@ if ! run "docker-compose exec --user devilbox -T php curl -sS --fail -L -XPOST -
|
|||||||
--data 'blog_public=0' \
|
--data 'blog_public=0' \
|
||||||
--data 'Submit=Install+WordPress&language=' >/dev/null" "${RETRIES}" "${DVLBOX_PATH}"; then
|
--data 'Submit=Install+WordPress&language=' >/dev/null" "${RETRIES}" "${DVLBOX_PATH}"; then
|
||||||
run "docker-compose exec --user devilbox -T php curl -sS --fail -L -XPOST -c cookie.txt -b cookie.txt \
|
run "docker-compose exec --user devilbox -T php curl -sS --fail -L -XPOST -c cookie.txt -b cookie.txt \
|
||||||
'http://${VHOST}.${TLD_SUFFIX}:${HOST_PORT_HTTPD}/wp-admin/install.php?step=2' \
|
'http://${VHOST}.${TLD_SUFFIX}/wp-admin/install.php?step=2' \
|
||||||
--data 'weblog_title=${PROJECT_NAME}' \
|
--data 'weblog_title=${PROJECT_NAME}' \
|
||||||
--data 'user_name=admin' \
|
--data 'user_name=admin' \
|
||||||
--data 'admin_password=password' \
|
--data 'admin_password=password' \
|
||||||
|
Loading…
Reference in New Issue
Block a user