Update and move scripts
This commit is contained in:
parent
8b6e65d6fe
commit
7744b2a1ce
4 changed files with 10 additions and 9 deletions
29
install/5.0/setup2.sh
Normal file
29
install/5.0/setup2.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
cd ~/live
|
||||
|
||||
# kmyblueの最新タグを取り込む
|
||||
if [ "$1" == "debug" ]; then
|
||||
elif [ "$1" == "newest" ]; then
|
||||
git checkout $(git tag -l | grep -E '^kb[0-9]' | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)
|
||||
else
|
||||
# LTS
|
||||
git checkout $(git tag -l | grep -E '^kb[0-9].*lts$' | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)
|
||||
fi
|
||||
|
||||
# Rubyバージョン管理用のrbenvをインストール、初期設定
|
||||
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
|
||||
cd ~/.rbenv && src/configure && make -C src
|
||||
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
|
||||
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
|
||||
|
||||
# ---------------------------------------------------
|
||||
|
||||
cat << EOF
|
||||
|
||||
============== [kmyblue setup script 2 completed] ================
|
||||
|
||||
Input this command to continue setup:
|
||||
exec bash
|
||||
exit
|
||||
sudo /home/mastodon/setup3.sh
|
||||
|
||||
EOF
|
Loading…
Add table
Add a link
Reference in a new issue