discourse update: add symlink for .ruby-version

This commit is contained in:
Milan 2024-05-03 09:57:04 +02:00
parent 09e533da0a
commit 714f6017bb

View File

@ -40,6 +40,8 @@ rubyver=$(< $basedir/.ruby-version.sample)
# uses newer ruby because they don't seem to use release
#rubyver=$(curl -s https://raw.githubusercontent.com/discourse/discourse_docker/main/image/base/slim.Dockerfile | grep -oP '(?<=RUBY_VERSION=)[0-9]+\.[0-9]+\.[0-9]+')
[ ! -L $basedir/.ruby-version ] && ln -sv $basedir/.ruby-version.sample $basedir/.ruby-version
if [[ ! -e ~/.rbenv/versions/$rubyver ]]
then
git -C $HOME/.rbenv/plugins/ruby-build pull