nas/install/setup2.sh
2023-09-17 08:52:30 +09:00

26 lines
768 B
Bash

# gitで最新リリースを取得
cd ~/live
git checkout $(git tag -l | grep -E '^kb[0-9]' | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)
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
cp /home/mastodon/live/install/setup3.sh /home/mastodon/setup3.sh
chmod +x /home/mastodon/setup3.sh
cp /home/mastodon/live/install/setup4.sh /home/mastodon/setup4.sh
chmod +x /home/mastodon/setup4.sh
# ---------------------------------------------------
cat << EOF
============== [kmyblue setup script 2 completed] ================
Input this command to continue setup:
exec bash
exit
sudo /home/mastodon/setup3.sh
EOF