Fix: セットアップスクリプトのyarn installでエラーが出る (#292)

This commit is contained in:
KMY(雪あすか) 2023-11-14 12:24:15 +09:00 committed by GitHub
parent eda8dae5a7
commit 927e02e051
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 365 additions and 0 deletions

44
install/9.0/setup2.sh Normal file
View file

@ -0,0 +1,44 @@
cd ~/live
cat << EOF
================== [kmyblue setup script 2] ======================
Checkout tag on kmyblue repository
EOF
# kmyblueの最新タグを取り込む
if [ "$1" == "debug" ]; then
echo 'DEBUG'
elif [ "$1" == "newest" ] || [ "$1" == "latest" ]; 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
cat << EOF
================== [kmyblue setup script 2] ======================
Install rbenv to control Ruby versions
EOF
# 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