mirror of
https://github.com/10h30/wordpress-caddy-docker.git
synced 2026-07-11 18:56:11 +09:00
Update wp-init.sh
This commit is contained in:
+4
-5
@@ -6,11 +6,7 @@ WORDPRESS_PASSWORD=$(sed -e 's#.*=\(\)#\1#' <<< "$(awk '/WORDPRESS_ADMIN_PASSWOR
|
|||||||
WORDPRESS_PLUGINS_TO_INSTALL=$(sed -e 's#.*=\(\)#\1#' <<< "$(awk '/WORDPRESS_PLUGINS_TO_INSTALL/{print}' .env)" | xargs)
|
WORDPRESS_PLUGINS_TO_INSTALL=$(sed -e 's#.*=\(\)#\1#' <<< "$(awk '/WORDPRESS_PLUGINS_TO_INSTALL/{print}' .env)" | xargs)
|
||||||
WORDPRESS_THEME_TO_INSTALL=$(sed -e 's#.*=\(\)#\1#' <<< "$(awk '/WORDPRESS_THEME_TO_INSTALL/{print}' .env)" | xargs)
|
WORDPRESS_THEME_TO_INSTALL=$(sed -e 's#.*=\(\)#\1#' <<< "$(awk '/WORDPRESS_THEME_TO_INSTALL/{print}' .env)" | xargs)
|
||||||
|
|
||||||
|
echo "== Installing WordPress =="
|
||||||
echo "Hello"
|
|
||||||
echo $SERVER_NAME
|
|
||||||
echo $WORDPRESS_TITLE
|
|
||||||
|
|
||||||
## Install Wodpress
|
## Install Wodpress
|
||||||
docker compose run wpcli core install \
|
docker compose run wpcli core install \
|
||||||
--url=${SERVER_NAME} \
|
--url=${SERVER_NAME} \
|
||||||
@@ -20,9 +16,11 @@ docker compose run wpcli core install \
|
|||||||
--admin_password=${WORDPRESS_PASSWORD} \
|
--admin_password=${WORDPRESS_PASSWORD} \
|
||||||
--skip-email
|
--skip-email
|
||||||
|
|
||||||
|
echo "== Configure Permalinks =="
|
||||||
## Configure Permalinks
|
## Configure Permalinks
|
||||||
docker compose run wpcli rewrite structure '/%postname%/'
|
docker compose run wpcli rewrite structure '/%postname%/'
|
||||||
|
|
||||||
|
echo "== Install Plugins =="
|
||||||
## Install Plugins
|
## Install Plugins
|
||||||
docker compose run wpcli plugin install ${WORDPRESS_PLUGINS_TO_INSTALL} --activate
|
docker compose run wpcli plugin install ${WORDPRESS_PLUGINS_TO_INSTALL} --activate
|
||||||
|
|
||||||
@@ -52,6 +50,7 @@ docker compose run wpcli option update cache_enabler '{
|
|||||||
"excluded_cookies": ""
|
"excluded_cookies": ""
|
||||||
}' --format=json
|
}' --format=json
|
||||||
|
|
||||||
|
echo "== Installing themes =="
|
||||||
# Theme installation
|
# Theme installation
|
||||||
docker compose run wpcli theme install "${WORDPRESS_THEME_TO_INSTALL}" --activate
|
docker compose run wpcli theme install "${WORDPRESS_THEME_TO_INSTALL}" --activate
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user