jjb: lttng-www: Use ruby2.7
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 23 Aug 2022 19:55:21 +0000 (15:55 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 23 Aug 2022 20:02:36 +0000 (16:02 -0400)
Change-Id: I096fb26aaae1f9a82c12397d2e646e78e35fbed2
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/lttng-www/deploy.sh

index 471925223c859a89053c7282b5d8e5f1f31a21cf..7f0308fc1b3318025378afb0a649c00a2a500815 100755 (executable)
@@ -18,6 +18,8 @@
 
 set -exu
 
+RUBY_VERSION=2.7
+
 # Add ssh key for deployment
 cp "$HOST_PUBLIC_KEYS" ~/.ssh/known_hosts
 cp "$KEY_FILE_VARIABLE" ~/.ssh/id_rsa
@@ -29,12 +31,20 @@ cp "$KEY_FILE_VARIABLE" ~/.ssh/id_rsa
 curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
 apt-get install -y nodejs
 
-apt-get install -y ruby-dev asciidoc xmlto python3 python3-pip
+apt-add-repository ppa:brightbox/ruby-ng
+apt-get install -y ruby${RUBY_VERSION} ruby${RUBY_VERSION}-dev ruby-switch
+
+ruby-switch --list
+ruby-switch --set ruby${RUBY_VERSION}
+
+ruby -v
+
+apt-get install -y asciidoc xmlto python3 python3-pip
 
 npm install -g grunt-cli
 npm install -g sass
 
-export PATH="/root/.gem/ruby/2.5.0/bin:$PATH"
+export PATH="/root/.gem/ruby/${RUBY_VERSION}.0/bin:$PATH"
 
 ./bootstrap.sh
 
This page took 0.024142 seconds and 4 git commands to generate.