Fix Wordpress CI check

This commit is contained in:
cytopia 2019-11-24 11:38:27 +01:00
parent a409c214c7
commit 593dfbe31a
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -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' \