mirror of
https://github.com/casjaysdevdocker/wordpress
synced 2025-01-18 12:34:35 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
2556536375
commit
f4ce626f4c
@ -1,4 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
DB_HOST="${DB_HOST:-localhost}"
|
||||||
|
DB_NAME="${DB_NAME:-wordpress}"
|
||||||
|
DB_USER="${DB_USER:-root}"
|
||||||
|
DB_PASS="${DB_PASS:-password}"
|
||||||
|
|
||||||
|
|
||||||
__url_check() {
|
__url_check() {
|
||||||
curl -q -SIs "http://localhost:80" | grep -qE 'HTTP/[1,2]*' && return 0 || return 1
|
curl -q -SIs "http://localhost:80" | grep -qE 'HTTP/[1,2]*' && return 0 || return 1
|
||||||
@ -43,8 +49,7 @@ if [ "$1" = "healthcheck" ]; then
|
|||||||
__url_check && __file_check && exit 0 || exit 1
|
__url_check && __file_check && exit 0 || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "/usr/html/wp-admin" ] && [ ! -f "/usr/html/wp-config.php" ]; then
|
if [ ! -d "/usr/html/wp-admin" ] && [ ! -f "/usr/html/wp-config.php" ]; then echo "[i] Installing wordpress..."
|
||||||
echo "[i] Installing wordpress..."
|
|
||||||
cd /tmp || exit 1
|
cd /tmp || exit 1
|
||||||
wget https://wordpress.org/latest.tar.gz -O /tmp/latest.tar.gz &&
|
wget https://wordpress.org/latest.tar.gz -O /tmp/latest.tar.gz &&
|
||||||
tar -xzf /tmp/latest.tar.gz &&
|
tar -xzf /tmp/latest.tar.gz &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user