Skip to content

Instantly share code, notes, and snippets.

@AtsushiA
Last active January 31, 2017 07:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AtsushiA/cf052abeccf7aefda83c38b4a75d0dd3 to your computer and use it in GitHub Desktop.
Save AtsushiA/cf052abeccf7aefda83c38b4a75d0dd3 to your computer and use it in GitHub Desktop.
wocker-init-ja
#!/bin/bash
wocker wp core language install ja --activate
wocker wp core update-db
wocker wp option update timezone_string 'Asia/Tokyo'
wocker wp option update date_format 'Y年n月j日'
wocker wp option update time_format 'H:i'
wocker wp plugin update-all
wocker wp theme update-all
wocker wp plugin install \
wp-multibyte-patch \
theme-check \
show-current-template \
dynamic-hostname \
--activate
echo "テーマユニットテストデータをインストールしますか? [Y/N]"
read ANSWER
case $ANSWER in
"" | "Y" | "y" | "yes" | "Yes" | "YES" ) wocker theme-test ja && echo "Theme Test Data install Done!!";;
* ) echo "init Done!";;
esac
#!/bin/bash
GET_URL="https://gist.githubusercontent.com/AtsushiA/cf052abeccf7aefda83c38b4a75d0dd3/raw/init.sh"
cd $HOME/data
wget $GET_URL
chmod +x init.sh
ln -s $HOME/data/init.sh $HOME/
@AtsushiA
Copy link
Author

in wocker

wget -qO - 'https://gist.githubusercontent.com/AtsushiA/cf052abeccf7aefda83c38b4a75d0dd3/raw/set-init.sh' | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment