From 714f6017bb2265f82ed0475c6320fb7664fdc2b7 Mon Sep 17 00:00:00 2001 From: Milan Date: Fri, 3 May 2024 09:57:04 +0200 Subject: [PATCH] discourse update: add symlink for .ruby-version --- updates/discourse.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/updates/discourse.sh b/updates/discourse.sh index bc0eba5..1bcb11a 100644 --- a/updates/discourse.sh +++ b/updates/discourse.sh @@ -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