|
@@ -3,11 +3,14 @@
|
|
set -eux
|
|
set -eux
|
|
|
|
|
|
if [[ -z "$(ls -A /app/data)" ]]; then
|
|
if [[ -z "$(ls -A /app/data)" ]]; then
|
|
- ln -sf /app/data/wp-config.php /app/code/wp-config.php
|
|
|
|
|
|
+ echo "Copying wp-content files on first run"
|
|
mv /app/code/wp-content /app/data/wp-content/
|
|
mv /app/code/wp-content /app/data/wp-content/
|
|
- ln -s /app/data/wp-content /app/code/wp-content
|
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+[[ ! -L "/app/code/wp-content" ]] && rm -rf /app/code/wp-content # upgrades & updates - starting out with existing data
|
|
|
|
+
|
|
|
|
+ln -sf /app/data/wp-content /app/code/wp-content
|
|
|
|
+
|
|
: ${MYSQL_URL:=}
|
|
: ${MYSQL_URL:=}
|
|
if [[ -z "${MYSQL_URL}" ]]; then
|
|
if [[ -z "${MYSQL_URL}" ]]; then
|
|
echo "MYSQL_URL is empty"
|
|
echo "MYSQL_URL is empty"
|