Skip to content

Instantly share code, notes, and snippets.

@miya0001 miya0001/
Last active Nov 27, 2015

What would you like to do?
AMIMOTO Automated Setup
#!/usr/bin/env bash
set -ex;
# WordPressをec2-user権限で動かすように設定を変更
curl -L | sudo bash
# WordPressのセットアップ
wp --path=/var/www/vhosts/$(curl -L \
core install \
--url=http://$(curl -L \
--title="Welcome to the WordPress powered by AMIMOTO" \
--admin_user="admin" \
--admin_password="$(curl -L" \
# WordPressプラグインのインストール
wp --path=/var/www/vhosts/$(curl -L \
plugin install contact-form-7 --activate
# WordPressテーマのセットアップ
wp --path=/var/www/vhosts/$(curl -L \
theme install twentyfifteen --activate
# パーマリンク設定の変更
wp --path=/var/www/vhosts/$(curl -L \
rewrite structure "/archives/%post_id%"
# オプションを変更
wp --path=/var/www/vhosts/$(curl -L \
option update blogdescription "Powered by AMIMOTO!"
# 最後にインスタンスIDを入力するUIを削除
sudo rm -f /opt/local/amimoto/wp-admin/install.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.