-
-
Save dsk52/1d769286dd30b07e17f623a5e1fc4257 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DBNAME="" #データベース名 | |
DBUSER="" #データベースユーザ名 | |
DBPASS="" #データベースパス | |
DBHOST="" #データベースホスト | |
DBPREFIX="" #テーブルのプレフィックス ex. wp_ | |
# ############ | |
SITE_URL="" #サイトURL ex.http://example.com/ | |
SITE_TITLE="" #サイトタイトル | |
ADMIN_USER="" #WP管理者ユーザー名 | |
ADMIN_PASSWORD="" #WP管理者パスワード | |
ADMIN_EMAIL="" #WP管理者 メールアドレス | |
# インストールしておきたいプラグインをこの配列に入れておく | |
PLUGINS=("wp-multibyte-patch","duplicate-post") | |
# ############ | |
# Download Wordpress | |
wp core download --locale=ja | |
# SetUp wp-config | |
wp core config --dbname=${DBNAME} --dbuser=${DBUSER} --dbpass=${DBPASS} --dbhost=${DBHOST} --dbprefix=${DBPREFIX} | |
# Wordpress Install | |
wp core install --url=${SITE_URL} --title=${SITE_TITLE} --admin_user=${ADMIN_USER} --admin_password=${ADMIN_PASSWORD} --admin_email=${ADMIN_EMAIL} | |
# Plugins Download & Install | |
for plugin in ${PLUGINS[@]} | |
do | |
wp plugin install $plugin --activate | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment